You are here: Configuration > Networking Configuration > Batch Mode

Batch Mode

Batch mode allows to increase the performance by reducing client/server communication. It's activated by default.

IClientConfiguration configuration = Db4oClientServer.NewClientConfiguration();
configuration.Networking.BatchMessages = true;
NetworkConfigurationExample.cs: enable or disable batch mode
Dim configuration As IClientConfiguration = Db4oClientServer.NewClientConfiguration()
configuration.Networking.BatchMessages = True
NetworkConfigurationExample.vb: enable or disable batch mode

db4o communicates with the server by means of messaging. Without batch mode db4o sends a message for each operation and waits for the response. This might be quite inefficient when there are many small messages to be sent (like bulk inserts, updates, deletes). The network communication becomes a bottleneck. Batch messaging mode solves this problem by caching the messages and sending them only when required.

Advantages

Disadvantages