Open jersiovic opened 5 years ago
+1
Eventual consistency. Compared to the current state which is always consistent as the indices are committed in the same transaction as the data.
To achieve that I think it would require a separate queue of SQL statements and a task that would process this queue. So the index commands would not go to the database directly. Very hard to implement as there would be many side effects.
It would be useful for certain scenarios we can declare an index as deferred. It will be useful when we don't want/need to wait for the index creation cause it takes too long time and we don't need to be aware of when changes on index are performed.