cancel
Showing results for 
Search instead for 
Did you mean: 

Very slow nxql query with some filters

Ahmad_Ben_Maall
Star Contributor
Star Contributor

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

4 REPLIES 4

Gregory_Carlin
Elite Collaborator
Elite Collaborator

What about the Elasticsearch indexes and nodes?

Ahmad_Ben_Maall
Star Contributor
Star Contributor

The Elasticsearch indexes and nodes are properly configured and initialized.

Gregory_Carlin
Elite Collaborator
Elite Collaborator

NXQL page provider is using the DB implementation

Ahmad_Ben_Maall
Star Contributor
Star Contributor

Are you saying I need to add "nxql_search" to the "elasticsearch.override.pageproviders" property in nuxeo.conf ?

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.