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

Improve performance of Status->getIndicesWithAlias #564

Merged
merged 1 commit into from
Mar 4, 2014

Conversation

nik9000
Copy link
Contributor

@nik9000 nik9000 commented Mar 3, 2014

Particularly improves performance on clusters with many indices. Slow
to instant.

Closes #563

$indices[] = $status->getIndex();
$response = null;
try {
$response = $this->_client->request("/_alias/$alias");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use '/alias/' . $alias here instead? I'm not a too big fan of variables inside the strings ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Particularly improves performance on clusters with many indices.  Slow
to instant.

Closes ruflin#563
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) when pulling 159ea17 on nik9000:many_indices into 2cb3a2c on ruflin:master.

wmfgerrit pushed a commit to wikimedia/mediawiki-extensions-Elastica that referenced this pull request Mar 4, 2014
Especially faster for cluster with logs of indices.  Like, many orders of
magnitude faster.

Upstreamed with ruflin/Elastica#564

Change-Id: Id6619ae3d2545b4a687c10af9cea8b03be89ac8c
ruflin added a commit that referenced this pull request Mar 4, 2014
Improve performance of Status->getIndicesWithAlias
@ruflin ruflin merged commit f6d29d5 into ruflin:master Mar 4, 2014
@ruflin
Copy link
Owner

ruflin commented Mar 4, 2014

Merged. Thx

@nik9000
Copy link
Contributor Author

nik9000 commented Mar 4, 2014

Thank you. This will really help when I have to do an index rebuild to update mapping.

On Mar 4, 2014, at 1:07 AM, Nicolas Ruflin notifications@github.com wrote:

Merged. Thx


Reply to this email directly or view it on GitHub.

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.

getIndicesWithAlias and aliasExists very slow on clusters with many indexes
3 participants