summaryrefslogtreecommitdiff
path: root/update_sharing.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2014-03-08 13:30:20 +0100
committerHelmut Grohne <helmut@subdivi.de>2014-03-08 13:30:20 +0100
commit5ccb80491346bab81414f74cd8297285083a5d8f (patch)
treedae820bfd12e3f6f92e1108e0389121214da1fd4 /update_sharing.py
parent73ca50c10d929a99cf0355293affdf6fc923df27 (diff)
downloaddebian-dedup-5ccb80491346bab81414f74cd8297285083a5d8f.tar.gz
enable result buffering for postgres
Diffstat (limited to 'update_sharing.py')
-rwxr-xr-xupdate_sharing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/update_sharing.py b/update_sharing.py
index 450bfc7..e41bceb 100755
--- a/update_sharing.py
+++ b/update_sharing.py
@@ -4,7 +4,7 @@ import optparse
import sqlalchemy
-from dedup.utils import fetchiter, enable_sqlite_foreign_keys
+from dedup.utils import fetchiter, configure_database_engine
def add_values(conn, insert_key, files, size):
params = dict(files=files, size=size, pid1=insert_key[0],
@@ -78,5 +78,5 @@ if __name__ == "__main__":
help="location of the database")
options, args = parser.parse_args()
db = sqlalchemy.create_engine(options.database)
- enable_sqlite_foreign_keys(db)
+ configure_database_engine(db)
main(db)