Skip to content

Commit

Permalink
Update the queries
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Feb 7, 2024
1 parent 1fb0d30 commit da7e7c6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
11 changes: 11 additions & 0 deletions basemap/queries/osm_drop_indexes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DROP INDEX IF EXISTS osm_nodes_tags_index;
DROP INDEX IF EXISTS osm_nodes_tags_tsvector_index;
DROP INDEX IF EXISTS osm_nodes_geom_index;

DROP INDEX IF EXISTS osm_ways_tags_index;
DROP INDEX IF EXISTS osm_ways_tags_tsvector_index;
DROP INDEX IF EXISTS osm_ways_geom_index;

DROP INDEX IF EXISTS osm_relations_tags_index;
DROP INDEX IF EXISTS osm_relations_tags_tsvector_index;
DROP INDEX IF EXISTS osm_relations_geom_index;
4 changes: 2 additions & 2 deletions basemap/queries/osm_nodes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
-- See the License for the specific language governing permissions and
-- limitations under the License.

CREATE INDEX IF NOT EXISTS osm_nodes_tags_index ON osm_nodes USING gin (tags);
CREATE INDEX IF NOT EXISTS osm_nodes_tags_tsvector_index ON osm_nodes USING gin (to_tsvector('english', tags));
CREATE INDEX IF NOT EXISTS osm_nodes_geom_index ON osm_nodes USING gist (geom);
CREATE INDEX IF NOT EXISTS osm_nodes_tags_index ON osm_nodes USING gin (tags);
-- CREATE INDEX IF NOT EXISTS osm_nodes_tags_tsvector_index ON osm_nodes USING gin (to_tsvector('english', tags));
4 changes: 2 additions & 2 deletions basemap/queries/osm_relations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
-- See the License for the specific language governing permissions and
-- limitations under the License.

CREATE INDEX IF NOT EXISTS osm_relations_tags_index ON osm_relations USING gin (tags);
CREATE INDEX IF NOT EXISTS osm_relations_tags_tsvector_index ON osm_relations USING gin (to_tsvector('english', tags));
CREATE INDEX IF NOT EXISTS osm_relations_geom_index ON osm_relations USING gist (geom);
CREATE INDEX IF NOT EXISTS osm_relations_tags_index ON osm_relations USING gin (tags);
--CREATE INDEX IF NOT EXISTS osm_relations_tags_tsvector_index ON osm_relations USING gin (to_tsvector('english', tags));
4 changes: 2 additions & 2 deletions basemap/queries/osm_ways.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
-- limitations under the License.

CREATE INDEX IF NOT EXISTS osm_ways_geom_index ON osm_ways USING gist (geom);
CREATE INDEX IF NOT EXISTS osm_ways_tags_tsvector_index ON osm_ways USING gin (to_tsvector('english', tags));
CREATE INDEX IF NOT EXISTS osm_ways_tags_index ON osm_ways USING gin (tags);
CREATE INDEX IF NOT EXISTS osm_ways_tags_index ON osm_ways USING gin (tags);
--CREATE INDEX IF NOT EXISTS osm_ways_tags_tsvector_index ON osm_ways USING gin (to_tsvector('english', tags));
2 changes: 0 additions & 2 deletions daylight/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export default {
{
"type": "ImportOsmPbf",
"file": "data/data.osm.pbf",
"cache": "cache/",
"database": config.database,
"databaseSrid": 3857,
"replaceExisting": true,
Expand All @@ -39,7 +38,6 @@ export default {
{
"type": "ImportOsmPbf",
"file": "data/buildings.osm.pbf",
"cache": "building_cache/",
"database": config.database,
"databaseSrid": 3857,
"replaceExisting": false,
Expand Down

0 comments on commit da7e7c6

Please sign in to comment.