Skip to content

Commit

Permalink
Remove indexing the tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Dec 3, 2024
1 parent 530883f commit a159c7c
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 4 deletions.
164 changes: 164 additions & 0 deletions images/tiler-imposm/config/layers/relation_members_routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{
"tags": {
"load_all": true,
"exclude": [
"created_by",
"source",
"source:datetime"
]
},
"generalized_tables": {
"route_lines_z5_7": {
"source": "relation_members_routes",
"sql_filter": "type IS NOT NULL AND route IS NOT NULL",
"tolerance": 500
},
"route_lines_z8_9": {
"source": "relation_members_routes",
"sql_filter": "type IS NOT NULL AND route IS NOT NULL",
"tolerance": 200
},
"route_lines_z10_12": {
"source": "relation_members_routes",
"sql_filter": "type IS NOT NULL AND route IS NOT NULL",
"tolerance": 100
},
"route_lines_z12_20": {
"source": "relation_members_routes",
"sql_filter": "type IS NOT NULL AND route IS NOT NULL"
}
},
"tables": {
"relation_members_routes": {
"type": "relation_member",
"fields": [
{
"type": "id",
"name": "osm_id",
"key": null
},
{
"type": "string",
"name": "name",
"key": "name"
},
{
"type": "mapping_value",
"name": "type",
"key": null
},
{
"type": "integer",
"name": "admin_level",
"key": "admin_level"
},
{
"key": "route",
"name": "route",
"type": "string"
},
{
"key": "ref",
"name": "ref",
"type": "string"
},
{
"key": "network",
"name": "network",
"type": "string"
},
{
"key": "direction",
"name": "direction",
"type": "string"
},
{
"key": "operator",
"name": "operator",
"type": "string"
},
{
"key": "state",
"name": "state",
"type": "string"
},
{
"key": "symbol",
"name": "symbol",
"type": "string"
},
{
"key": "distance",
"name": "distance",
"type": "string"
},
{
"key": "roundtrip",
"name": "roundtrip",
"type": "string"
},
{
"key": "interval",
"name": "interval",
"type": "string"
},
{
"key": "duration",
"name": "duration",
"type": "string"
},
{
"key": "tourism",
"name": "tourism",
"type": "string"
},
{
"key": "start_date",
"name": "start_date",
"type": "string"
},
{
"key": "end_date",
"name": "end_date",
"type": "string"
},
{
"type": "hstore_tags",
"name": "tags",
"key": null
},
{
"name": "geometry",
"type": "geometry",
"key": null
},
{
"name": "member",
"type": "member_id"
},
{
"name": "me_maritime",
"type": "string",
"key": "maritime",
"from_member": true
},
{
"type": "hstore_tags",
"name": "me_tags",
"from_member": true
},
{
"name": "me_name",
"key": "name",
"type": "string",
"from_member": true
}
],
"mapping": {
"route": [
"__any__"
]
}
}
}
}
2 changes: 1 addition & 1 deletion images/tiler-imposm/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function importData() {
-deployproduction

# These index will help speed up tegola tile generation
psql "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB" -a -f config/postgis_index.sql
# psql "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB" -a -f config/postgis_index.sql
psql "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB" -a -f config/postgis_post_import.sql

touch $INIT_FILE
Expand Down
5 changes: 2 additions & 3 deletions values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ osm-seed:
mountPath: /var/lib/postgresql/data
subPath: postgresql-d
# In case cloudProvider: aws
AWS_ElasticBlockStore_volumeID : vol-05aa0df896ba49c01
AWS_ElasticBlockStore_volumeID : vol-0492574788bacbabb
AWS_ElasticBlockStore_size: 200Gi
resources:
enabled: false
Expand Down Expand Up @@ -498,7 +498,7 @@ osm-seed:
accessMode: ReadWriteOnce
mountPath: /mnt/data
# In case cloudProvider: aws
AWS_ElasticBlockStore_volumeID: vol-0defbed7d3141afe9
AWS_ElasticBlockStore_volumeID: vol-02af939ea87b8c5db
AWS_ElasticBlockStore_size: 50Gi
resources:
enabled: false
Expand Down Expand Up @@ -1015,4 +1015,3 @@ ohm:
enabled: true
label_key: nodegroup_type
label_value: web_large

0 comments on commit a159c7c

Please sign in to comment.