-
Notifications
You must be signed in to change notification settings - Fork 6
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
datahub:index:rebuild configName indexes unrelated objects #57
Comments
Thank you for reporting this problem! This is an open source project, and we rely on the community to help us diagnose and fix issues, as it is not possible to investigate and fix every issue reported to us via GitHub. If possible, please create a pull request that fixes the problem you describe, along with appropriate tests. All pull requests will be promptly reviewed by the BrandOriented team. Thank you very much! |
The method used to create the ES index has been changed to be more explicit. |
Seems fixed now. |
Sorry but it is still an issue. Example: Installation has about 30 000 assets and 14 000 products (variants and objects). Yet it still indexes over 90 000 elements (which appears to match all dataobjects and all assets in total). |
@labudzinski I think I see the issue here: PimcoreCiHubConnector/src/Messenger/Handler/RebuildIndexElementMessageHandler.php Lines 60 to 62 in a8dc881
PimcoreCiHubConnector/src/Messenger/Handler/RebuildIndexElementMessageHandler.php Line 73 in a8dc881
These lines re-indexes all objects in the |
In the IndexPersistenceService class in the update method:
We check whether the class is declared in the configuration. |
The lines I show above cause a massive unnecessary congestion in the messenger queue by queuing elements which should not be indexed. We can improve performance and reduce strain on the logging system a lot by not doing that in the first place. |
Pimcore version(s) affected
11.2.3
Description
When running the command
bin/console datahub:index:rebuild mycomfigname
I expect it to re-index DataObjets only in the given config.Instead it also indexes unrelated DataObjects.
How to reproduce
Example config name:
Then run
bin/console datahub:index:rebuild ci_hub_1
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: