From 071a3489c82fdf7d42c4422585401302491ae295 Mon Sep 17 00:00:00 2001 From: Michiel Korpel Date: Mon, 21 Oct 2024 09:26:13 +0200 Subject: [PATCH] Create index on external_fid if it is created --- optimizer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/optimizer.go b/optimizer.go index 6519366..058ad26 100644 --- a/optimizer.go +++ b/optimizer.go @@ -65,6 +65,7 @@ func optimizeOAFGeopackage(sourceGeopackage string, config string) { if layerCfg.ExternalFidColumns != nil { addColumn(tableName, "external_fid", "TEXT", db) setColumnValue(tableName, "external_fid", fmt.Sprintf("uuid5('%s', '%s'||%s)", pdokNamespace, tableName, strings.Join(layerCfg.ExternalFidColumns, "||")), db) + createIndex(tableName, []string{"external_fid"}, fmt.Sprintf("%s_external_fid_idx", tableName), false, db) } if layerCfg.TemporalColumns != nil {