Skip to content

Commit 9e64072

Browse files
committed
doc: add comment on method to set savepoint_limit dynamically
savepoint_limit isn't a real config option as in config.ini. I generate one on the fly for use in the backend during import. While this is arguably a valid config option, it is also something that is niche (import a tracker to postgres) and adds clutter to config.ini.
1 parent 1bc1be9 commit 9e64072

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roundup/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,9 @@ def do_import(self, args, import_files=True):
10581058
# default value is 10000, only go through this if default
10591059
# is different.
10601060
if self.settings['savepoint_limit'] != 10000:
1061+
# create a new option on the fly in the config under the
1062+
# rdbms section. It is used by the postgresql backend's
1063+
# checkpoint_data method.
10611064
self.db.config.add_option(Option(self.db.config,
10621065
"rdbms", "savepoint_limit"))
10631066
self.db.config.options["RDBMS_SAVEPOINT_LIMIT"].set(

0 commit comments

Comments
 (0)