diff options
author | Helmut Grohne <helmut@subdivi.de> | 2014-03-08 13:30:20 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2014-03-08 13:30:20 +0100 |
commit | 5ccb80491346bab81414f74cd8297285083a5d8f (patch) | |
tree | dae820bfd12e3f6f92e1108e0389121214da1fd4 /autoimport.py | |
parent | 73ca50c10d929a99cf0355293affdf6fc923df27 (diff) | |
download | debian-dedup-5ccb80491346bab81414f74cd8297285083a5d8f.tar.gz |
enable result buffering for postgres
Diffstat (limited to 'autoimport.py')
-rwxr-xr-x | autoimport.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoimport.py b/autoimport.py index 6db6171..7d5c000 100755 --- a/autoimport.py +++ b/autoimport.py @@ -18,7 +18,7 @@ from debian import deb822 from debian.debian_support import version_compare import sqlalchemy -from dedup.utils import enable_sqlite_foreign_keys +from dedup.utils import configure_database_engine from readyaml import readyaml @@ -91,7 +91,7 @@ def main(): options, args = parser.parse_args() tmpdir = tempfile.mkdtemp(prefix=b"debian-dedup") db = sqlalchemy.create_engine(options.database) - enable_sqlite_foreign_keys(db) + configure_database_engine(db) e = concurrent.futures.ThreadPoolExecutor(multiprocessing.cpu_count()) pkgs = {} for d in args: |