Skip to content

perf: speed up index creation in documentdb-local - #539

Closed
Ritvik-Jayaswal wants to merge 1 commit into
documentdb:mainfrom
Ritvik-Jayaswal:fix/529-index-creation-performance
Closed

Ritvik-Jayaswal wants to merge 1 commit into
documentdb:mainfrom
Ritvik-Jayaswal:fix/529-index-creation-performance

Conversation

@Ritvik-Jayaswal

Copy link
Copy Markdown
Collaborator

Reduce indexBuildScheduleInSec default from 2 to 1 (halves worst-case pg_cron wait) and indexBuildWaitSleepTimeInMilliSec default from 1000 to 100 (faster gateway poll detection).

These changes significantly reduce the per-index creation latency, which is especially impactful for workloads that create many collections with indexes (e.g. NStore pattern with 158 collections).

Fixes #529

Reduce indexBuildScheduleInSec default from 2 to 1 (halves worst-case
pg_cron wait) and indexBuildWaitSleepTimeInMilliSec default from 1000
to 100 (faster gateway poll detection).

These changes significantly reduce the per-index creation latency,
which is especially impactful for workloads that create many
collections with indexes (e.g. NStore pattern with 158 collections).

Fixes documentdb#529
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.

[Feature Request] improve perfromance of index creation in dcumentdb-local

2 participants