Skip to content

lua: speed up creating secondary#437

Closed
w41ter wants to merge 1 commit intoakopytov:masterfrom
w41ter:speed_secondary_prepare
Closed

lua: speed up creating secondary#437
w41ter wants to merge 1 commit intoakopytov:masterfrom
w41ter:speed_secondary_prepare

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.

@w41ter w41ter closed this Dec 29, 2025
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