Skip to content
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

lua: speed up creating secondary #437

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

w41ter
Copy link

@w41ter w41ter commented Nov 9, 2021

When creating a secondary index, the database needs to supplement the index for each existing data synchronously. In some distributed databases, creating a secondary index requires a lot of steps (for example, using the online schema change scheme of Google F1), and it takes longer to create a secondary index in this scenario. Create indexes before performing bulk insert, which can avoid some unnecessary work and significantly reduce the delay in the oltp prepare phase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant