Closed arca1n closed 5 months ago
Hi @eyab , Kindly look into this matter. Thank you!
Hi, I looked into this issue, and an interestingly enough, I was able to get the GIN indexes to work in certain cases when I set enable_seqscan to off. It seems like the order in which the indices are created might be affecting the planner's estimation of the indexes performance. @arca1n
@arca1n Have you tried testing or troubleshooting the GIN Indexes under different conditions? When I change the size of the dataset, the PG planner opts to use GIN indexes in cases where it deems it more efficient. Also as @jrgemignani mentioned to me on this issue, using the VACUUM command may help optimize the database. The Reindex command as well might help with this.
This issue is stale because it has been open 45 days with no activity. Remove "Abondoned" label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for further 7 days with no activity.
Describe the bug The GIN index needs to be crated before any data is added to the vertex. If the gin index on
properties
is created after data has been added to the graph, the GIN indexes are ignored while querying. See examples below.How are you accessing AGE (Command line, driver, etc.)?
What data setup do we need to do?
Scenario 1 The GIN index is created before adding graph data
Result Scenario 1 shows GIN index on property is being used
Scenario 2 GIN index on property is created after data has been added
Result Scenario 2 shows that the GIN indexes are ignored on the properties when querying
What is the necessary configuration info needed?
What is the command that caused the error? Details described above. The the GIN index needs to be added on the property before any data is added to the table
Expected behavior No matter when the data gets added to the table, creating an index on the table should enable indexes on the query
Environment (please complete the following information):
Additional context GIN index to enable faster querying on properties needs to be created before any data has been added to the graph.