Just after adding an item in my database, I do a request to add and commit this item in SOLR.
It works fine but I wanted to stress test my code.
So I simulate 10 persons which, at the same time, add/update 10 items in 1 second.
When I see the result, some of this documents are not indexed correctly. Some of them are not updated (SOLR display an old value).
I think if a request comes when an other request is not finished, SOLR simply ignore the request.
Is there a way to queue the requests ?
FYI I have 2M+ documents with 100+ properties and the request to add and commit one document takes less than 50ms.
The request url I made :
http://localhost:8983/solr/mycore/dataimport?command=full-import&clean=false&commit=true&where=WHERE Id='{my item id}'
My SQL data config :
<document>
<entity name="asset"
query="
SELECT
Id,
Name,
Code,
ShortDescription,
Description
FROM table
${dataimporter.request.where}
"
>
<field column="Name" name="name" />
<field column="Code" name="code" />
<field column="ShortDescription" name="shortDescription" />
<field column="Description" name="description" />
</entity>
</document>