I'm running a script as an action that does the following:
1. Reads a bunch of records from an Excel File 2. Looks up for a space within the repository using. Here's the code snippet:
var query = "@cm\\:name:\""+number+"\" AND TYPE:cm\\:folder AND PATH:\""+path+"//*\""; var docs = search.luceneSearch(query);
3. Assigns metadata values to an aspect using the data taken from the Excel file
Our issue is that the command that searches within the repository (var docs = search.luceneSearch(query):smileywink: is taking an average of 1.8 Minutes (on each iteration) to be executed. That looks like way too much time for just a query.
Here's some information about the repository and the platform it was deployed on:
I've been looking deeper into this issue and found out that the problem might be with Lucene indexes, as I ran the queries on the Postgree admin console and they are executed normally.