]> git.ipfire.org Git - thirdparty/samba.git/commit
provision: always use a large transaction index cache
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 30 Jan 2025 21:31:32 +0000 (10:31 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 4 Feb 2025 22:47:35 +0000 (22:47 +0000)
commite705dbbc6765454813375fee9f6a3365b947e021
tree4670dafcdc80aeaa0cb15181fd579995cceabd70
parent5092d7f46b8491e4a2d973a00aff4d6c0e77945e
provision: always use a large transaction index cache

A larger cache costs more per transaction, but makes a large number
of operations within a transaction faster. We expect to be dealing
with the latter case here, regardless of the batch_mode parameter
and the database size. 200000 is chosen because it is also used in
join and schemaupgrade, and should be sufficient in most cases.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15795

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Tue Feb  4 22:47:35 UTC 2025 on atb-devel-224
python/samba/provision/__init__.py