Bug #1872

Updated by Matthieu Decorde 3 months ago

When many annotations are created the current code creates as many SQL transactions as annotations to create.

Note : Windows TXM seems slower as annotations are created.

h3. Solution

# Create annotation creation methods without transaction and update concordance editor to use only one transaction.
# flush & clear the entity manager each new 10000 created entity
# if not enough, commit the transaction each new +10000 created entity

h3. Validation test

* Create a concordance with [] query
* annotate more than 50 000 lines in the concordance
* check if the duration is OK