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

Don't acquire dirtyLock on autoid for create #6584

Closed
wants to merge 1 commit into from

Conversation

mikemccand
Copy link
Contributor

If we auto-generate the ID and know it cannot already exist then I think we can skip acquiring the dirtyLock for a small perf gain under high concurrency (I see a couple percent gain when _bulk indexing with 10 threads).

@areek areek assigned rmuir and unassigned rmuir Jun 23, 2014
@jpountz
Copy link
Contributor

jpountz commented Jun 30, 2014

LGTM

@jpountz jpountz removed the review label Jul 2, 2014
@mikemccand mikemccand closed this in 15b81c9 Jul 7, 2014
mikemccand added a commit that referenced this pull request Jul 7, 2014
When we know the ID for the document we are about to index was
auto-generated, we don't need to acquire/release the per-ID lock,
which might provide small speedups during highly concurrent indexing.

Closes #6584
@clintongormley clintongormley changed the title Core: don't acquire dirtyLock on autoid for create Indexing: Don't acquire dirtyLock on autoid for create Jul 16, 2014
@clintongormley clintongormley added the :Core/Infra/Core Core issues without another label label Jun 7, 2015
@clintongormley clintongormley changed the title Indexing: Don't acquire dirtyLock on autoid for create Don't acquire dirtyLock on autoid for create Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants