Very slow nxql query with some filters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2021 02:58 AM
Hello,
I have a nuxeo with mongoDB which contains a lot of data.
My problem is that the following nxql query is very slow: select * from Document where ecm:isTrashed = 0
By removing the filter on ecm:isTrashed
, I will have an immediate response,
That's why I thought about adding an index for ecm: isTrashed
in mongodb but the problem still persists.
For your information, while consulting my documents with mongoDB compass, I noticed that ecm: isTrashed does not appear in the json of my documents and it will be added only for the documents which are in the trash, maybe it is therefore, creating an index does not solve the problem.
Do you have an idea please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2021 03:48 PM
What about the Elasticsearch indexes and nodes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2021 02:40 AM
The Elasticsearch indexes and nodes are properly configured and initialized.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2021 04:13 AM
NXQL page provider is using the DB implementation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2021 05:04 AM
Are you saying I need to add "nxql_search" to the "elasticsearch.override.pageproviders" property in nuxeo.conf ?
