Comment on Understanding database indexes in PostgreSQLparentComments−paulddraper3yfor example, only the most recent version of somethingInherently cost prohibitive. Maintaining the index after a delete is O(n) operation.If you would like to take on some of that burden yourself, you can make a `lastest` bool flag and make a partial index on that.
Comments
Inherently cost prohibitive. Maintaining the index after a delete is O(n) operation.
If you would like to take on some of that burden yourself, you can make a `lastest` bool flag and make a partial index on that.