we have multiple processes adding adding documents to the same collection in a single instance of solr. what will happen if all the apps send a commit all at the same once, or very close to each other? will it cause data corruption, or some kind of lock?
2 Answers
1
votes
You are not going to get data corruption or locks, but you will get some performance issues as Solr will repeatedly do the heavy commit work (flush and reopen of readers).
If you are on latest Solr (4.3+), you could look into Soft/Hard commits based on timeout or document count. That way you don't need to manage the commits explicitly at all.
1
votes
Check Link
Locking is at a lower level than indexing and queries. Solr
coordinates multi-threaded indexing and query operations in memory and
a separate thread writes data to disk. There are no performance
problems with multiple searches and indexes happening at the same
time.