lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bharath Kumar <>
Subject Solr DeleteByQuery vs DeleteById
Date Tue, 09 Aug 2016 04:14:46 GMT
Hi All,

We are using SOLR 6.1 and i wanted to know which is better to use -
deleteById or deleteByQuery?

We have a program which deletes 100000 documents every 5 minutes from the
SOLR and we do it in a batch of 200 to delete those documents. For that we
now use deleteById(List<String> ids, 10000) to delete.
I wanted to know if we change it to deleteByQuery(query, 10000) where the
query is like this - (id:1 OR id:2 OR id:3 OR id:4). Will this have a
performance impact?

We use SOLR cloud with 3 SOLR nodes in the cluster and also we have a
similar setup on the target site and we use Cross Data Center Replication
to replicate from main site.

Can you please let me know if using deleteByQuery will have any impact? I
see it opens real time searcher on all the nodes in cluster.

Thanks & Regards,
Bharath MV Kumar

"Life is short, enjoy every moment of it"

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message