From 00874b614449b094300a4e249ead22618031b1d8 Mon Sep 17 00:00:00 2001 From: Gary Lockyer Date: Mon, 1 Apr 2019 16:49:38 +1300 Subject: [PATCH] python join: Set index transaction cache size. The default value is too small for joining a large domain. So we specify a size of 200,000 which is suitable for domains with up to 100,000 users. At a later date this could be added as a parameter to the join, but 200,000 should be suitable for now. Signed-off-by: Gary Lockyer Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Thu Apr 4 07:45:03 UTC 2019 on sn-devel-144 --- python/samba/join.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/samba/join.py b/python/samba/join.py index da8dcb050d3..46491122319 100644 --- a/python/samba/join.py +++ b/python/samba/join.py @@ -888,8 +888,13 @@ class DCJoinContext(object): # we now operate exclusively on the local database, which # we need to reopen in order to get the newly created schema + # we set the transaction_index_cache_size to 200,000 to ensure it is + # not too small, if it's too small the performance of the join will + # be negatively impacted. print("Reconnecting to local samdb") ctx.samdb = SamDB(url=ctx.local_samdb.url, + options=[ + "transaction_index_cache_size:200000"], session_info=system_session(), lp=ctx.local_samdb.lp, global_schema=False) -- 2.11.4.GIT