Skip to content

Tag: GIS

  • Git for Data: Instant PostgreSQL Database Cloning

    By Ruohang Feng In PGSQL 1659 words 8 min

    Ruohang FengPostgreSQLPG DevelopmentGIS

    Git for Data: Instant PostgreSQL Database Cloning

    Every programmer has used git clone. Hit enter, wait a few seconds, and a complete code repository appears on your disk. But what about databases? Want a copy of production data for your test environment? The traditional approach is pg_dump + …

    Every programmer has used git clone. Hit enter, wait a few seconds, and a complete code repository appears on your disk. But what about databases? Want a copy of production data for your test environment? The traditional approach is pg_dump + …

  • GeoIP Geographic Reverse Lookup Optimization

    By Ruohang Feng In PGSQL 1545 words 8 min

    Ruohang FengPostgreSQLPG DevelopmentExtensionGIS

    GeoIP Geographic Reverse Lookup Optimization

    Efficient implementation of IP geolocation lookups In application development, a ‘very common’ requirement is GeoIP conversion - converting source IP addresses from requests into corresponding geographic coordinates or administrative divisions …

    Efficient implementation of IP geolocation lookups In application development, a ‘very common’ requirement is GeoIP conversion - converting source IP addresses from requests into corresponding geographic coordinates or administrative divisions …

  • KNN Ultimate Optimization: From RDS to PostGIS

    By Ruohang Feng In PGSQL 4090 words 20 min

    Ruohang FengPostgreSQLPG DevelopmentMachine LearningGIS

    KNN Ultimate Optimization: From RDS to PostGIS

    Flexibly applying database functionality can easily achieve a 30,000-fold performance improvement in GIS selection scenarios. Level Method Performance/Time(ms) Maintainability/Reliability Notes 1 Brute Force 30,000 - Simple form 2 Coordinate Index 35 …

    Flexibly applying database functionality can easily achieve a 30,000-fold performance improvement in GIS selection scenarios. Level Method Performance/Time(ms) Maintainability/Reliability Notes 1 Brute Force 30,000 - Simple form 2 Coordinate Index 35 …

  • Efficient Administrative Region Lookup with PostGIS

    By Ruohang Feng In PGSQL 2166 words 11 min

    Ruohang FengPostgreSQLPG DevelopmentGIS

    Efficient Administrative Region Lookup with PostGIS

    Author: Vonng (@Vonng) Original WeChat article In application development, we often need to solve this problem: determining administrative regions based on user coordinates. We collect coordinates like 28°00'00"N 100°00'00.000"E, but what we …

    Author: Vonng (@Vonng) Original WeChat article In application development, we often need to solve this problem: determining administrative regions based on user coordinates. We collect coordinates like 28°00'00"N 100°00'00.000"E, but what we …