Star tree indexing has to be generated at index ge...
# general
m
Star tree indexing has to be generated at index generation time, and cannot be dynamically created at load time (unlike inverted index), currently.
h
Is there a way to check if the inverted index has been applied to the pre-loaded segments ?
We apply index for some columns but couldn't find anything in server or controller logs. Also; there wasn't much improvement in query performance.
m
Do you have access to segment dir?
h
yes
m
Or the server log should state it is building Inv index
Check Index_map file which shows offset of all indices
h
where can i find index_map file ?
m
Inside segment dir in server
h
there was no inverted index in the file. it had the default forward index offset
this is the table config used
Copy code
{
  "OFFLINE": {
    "tableName": "iw_audit_OFFLINE",
    "tableType": "OFFLINE",
    "segmentsConfig": {
      "segmentAssignmentStrategy": "BalanceNumSegmentAssignmentStrategy",
      "retentionTimeUnit": null,
      "retentionTimeValue": null,
      "segmentPushFrequency": null,
      "segmentPushType": "APPEND",
      "replicaGroupStrategyConfig": null,
      "completionConfig": null,
      "hllConfig": null,
      "timeType": "DAYS",
      "timeColumnName": "audit_date",
      "schemaName": "iw_audit",
      "replication": "2",
      "replicasPerPartition": null
    },
    "tenants": {
      "broker": "DefaultTenant",
      "server": "DefaultTenant",
      "tagOverrideConfig": null
    },
    "tableIndexConfig": {
      "invertedIndexColumns": [
        "str_num"
      ],
      "autoGeneratedInvertedIndex": false,
      "createInvertedIndexDuringSegmentGeneration": false,
      "sortedColumn": [],
      "bloomFilterColumns": [],
      "loadMode": "MMAP",
      "streamConfigs": {},
      "segmentFormatVersion": null,
      "columnMinMaxValueGeneratorMode": null,
      "noDictionaryColumns": null,
      "noDictionaryConfig": null,
      "onHeapDictionaryColumns": null,
      "starTreeIndexSpec": null,
      "starTreeIndexConfigs": null,
      "segmentPartitionConfig": null,
      "aggregateMetrics": false,
      "varLengthDictionaryColumns": null,
      "nullHandlingEnabled": false
    },
    "metadata": {
      "customConfigs": null
    }
  }
}
"tableIndexConfig": { "invertedIndexColumns": [ "str_num" ], Any error here ?
m
I suspect
"autoGeneratedInvertedIndex": false,
actually, nm. will look at the code at get back
h
We tried to call 'Reload all segments' api
i see inverted index now in index_map
m
oh ok
previously you just updated the table config?
if so, that does not trigger reload
h
i called 'Rebalance API'
before after update table config
m
I see
reload api is the right one
h
got it
thanks