From: Michael Tremer Date: Tue, 27 Sep 2022 08:00:59 +0000 (+0000) Subject: importer: Use a GIST index for networks from geofeeds X-Git-Tag: 0.9.17~29^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47fc42fb5f206c7fd9203876820c51b37e516b76;p=people%2Fms%2Flibloc.git importer: Use a GIST index for networks from geofeeds Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index f8d2dc8..5759e0c 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -207,7 +207,7 @@ class CLI(object): CREATE INDEX IF NOT EXISTS geofeed_networks_geofeed_id ON geofeed_networks(geofeed_id); CREATE INDEX IF NOT EXISTS geofeed_networks_search - ON geofeed_networks(network); + ON geofeed_networks USING GIST(network inet_ops); CREATE TABLE IF NOT EXISTS network_geofeeds(network inet, url text); CREATE UNIQUE INDEX IF NOT EXISTS network_geofeeds_unique ON network_geofeeds(network);