Many thanks for the clarification! ________________________________ From: dinesh naik <[email protected]> Sent: 13 October 2021 10:14 To: [email protected] <[email protected]> Subject: Re: Solr 8 autocommit vs client commits
*** External email: use caution *** Hi Saur, Yes , if you commit from a client with time set as 30 sec then the pending docs will also get committed in solr. Sending explicit commit requests from client applications should be avoided as it can severely impact the performance of your clusters. Solr provides IgnoreCommitOptimizeUpdateProcessorFactory, which will ignore all explicit commits/optimize .This change can be done in solrconfig.xml. for more details on commit, you can refer: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flucidworks.com%2Fpost%2Funderstanding-transaction-logs-softcommit-and-commit-in-sorlcloud%2F&data=04%7C01%7Ca.saur%40elsevier.com%7Cd411a90f99004e152bb008d98e219527%7C9274ee3f94254109a27f9fb15c10675d%7C0%7C0%7C637697098049090287%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Ix%2FkdhR2BGrkOL0dR50sbt01vwLIcOdAeCH7uM2%2BNbQ%3D&reserved=0 On Tue, Oct 12, 2021 at 6:29 PM Saur, Alexandre (ELS-AMS) < [email protected]> wrote: > Sorry for the noobie question guys, but I want to make sure I understand > the autocommit behaviour in Solr 8. > > Supposing I have an autocommit time of 5 minutes for a collection A, and > that collection has one pending document to index. If a client > (solrj.SolrClient) connects and adds a new document with the commitWithinMs > parameter set (e.g. 30 sec), what happens after the client call? > Specifically, will the pending document get committed as well and the index > will have those 2 documents added, or just the document added in the client > call? > > > ________________________________ > > Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The > Netherlands, Registration No. 33158992, Registered in The Netherlands. > -- Best Regards, Dinesh Naik ________________________________ Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33158992, Registered in The Netherlands.
