-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify utility of indexes for UPDATES and DELETES #4819
Comments
@thatnerd, you want to take this? |
On it. |
Going to try to figure out the previous PR first, then do this. |
Created a branch for this: https://github.com/cockroachdb/docs/tree/wc-clarify-utility-of-indexes-for-updates-and-deletes |
Is this really P-1? I agree that we should provide this guidance in our docs, but it's not clear it "needs to be done this release" (the P-1 standard) since it's a worthy but IMO non-urgent performance optimization tip. Gonna bump to P-2 and remove from milestone, shout if you strongly disagree. |
Closing this in favor of the new documentation on batch deletes. |
@thatnerd clarified why secondary indexes can slow down inserts, but in conversation, he also clarified the potential speed up for the seek portion of an update or delete when not filtering on the primary key. I just read our main index doc and SQL best practices and this guidance is completely missing, I think. We only talk about the impact of indexes on "queries", which I think is too vague. We should fix that.
The text was updated successfully, but these errors were encountered: