...
Indexes above are designed to optimize following queries:
- By dataspace, schema set, anchor. Order by timestamp desc.
- By dataspace, anchor. Order by timestamp desc.
- By dataspace, schema set, payload content. Order by timestamp desc.
...
- Adding a payload content condition to the 3 kinds of queries above. In this case, the gin index is used in combination with the index having the corresponding fields. See attached explain plan for an example.
References
...