4 ms·
No to mention adding an index is practically without risk, the outcome of queries is the same except probably faster.
by tinus_hn 4y ago
No to mention adding an index is practically without risk, the outcome of queries is the same except probably faster.
- thegabez 4y agoNot true, as always it depends.
- adamckay 4y agoNot true. An index isn't free so you can impact the write performance, depending on the workload and usecases slower writes could have more of an impact than faster reads. But even in a read heavy application it's possible that your databases query planner is "tricked" into using a specific index which can actually be slower than another (or even none) so you should always measure the impact that adding an index can have on your application.
- tinus_hn 4y agoYes it could be slower, but it’s very unlikely to actually break the application.
- nikau 4y agoTell me you haven't used spanner without telling me...