Johnny
Johnny

Reputation: 146

Is there a way to change the Batchsize of MongoDB permanently?

I want to make some test of a API I've written between MongoDB and SWI-PROLOG. So the problem I'm facing is the batch-size of MongoDB. Can I permanently set it up to 1.000.000?

I haven't found anything in the documantation of MongoDB.

I know I can change it via:

DBQuery.shellBatchSize = 1999

But not permanantly.

Upvotes: 1

Views: 1123

Answers (2)

Joe
Joe

Reputation: 28336

The default batch size is hardcoded here

You'll need to recompile to change it.

Upvotes: 1

D. SM
D. SM

Reputation: 14520

Batch size is a client setting, therefore to change it "permanently" configure it on the client the way you want it to be.

Upvotes: 1

Related Questions