You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I don't know how to be certain if an index is missing or not.
Maybe an alternative would be parsing the query to extract the filter conditions, describe the table to list the current indexes and compare if they match, but I would do it only as the last alternative because:
it's hard to parse a query and extract the filters
it would implement another kind of explain query
The text was updated successfully, but these errors were encountered:
It's very hard to figure out if a table needs a new index looking at the result of a PostgreSQL EXPLAIN query.
PostgreSQL's EXPLAIN result is not deterministic and varies depending on some internal state in the database statistics.
For example, I run a simple explain in a table which has a proper index, in 2 different moments, and got 2 different results:
So, I don't know how to be certain if an index is missing or not.
Maybe an alternative would be parsing the query to extract the filter conditions, describe the table to list the current indexes and compare if they match, but I would do it only as the last alternative because:
The text was updated successfully, but these errors were encountered: