kodexa 7.0.12399109365__py3-none-any.whl → 7.0.12399293688__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kodexa/model/persistence.py +9 -7
- {kodexa-7.0.12399109365.dist-info → kodexa-7.0.12399293688.dist-info}/METADATA +1 -1
- {kodexa-7.0.12399109365.dist-info → kodexa-7.0.12399293688.dist-info}/RECORD +5 -5
- {kodexa-7.0.12399109365.dist-info → kodexa-7.0.12399293688.dist-info}/LICENSE +0 -0
- {kodexa-7.0.12399109365.dist-info → kodexa-7.0.12399293688.dist-info}/WHEEL +0 -0
kodexa/model/persistence.py
CHANGED
@@ -111,9 +111,10 @@ class SqliteDocumentPersistence(object):
|
|
111
111
|
|
112
112
|
self.cursor = self.connection.cursor()
|
113
113
|
self.cursor.execute("PRAGMA journal_mode=OFF")
|
114
|
-
self.cursor.execute("
|
115
|
-
self.cursor.execute("
|
116
|
-
self.cursor.execute("
|
114
|
+
self.cursor.execute("PRAGMA temp_store=MEMORY")
|
115
|
+
self.cursor.execute("PRAGMA mmap_size=30000000000")
|
116
|
+
self.cursor.execute("PRAGMA cache_size=10000")
|
117
|
+
self.cursor.execute("PRAGMA page_size=4096")
|
117
118
|
|
118
119
|
try:
|
119
120
|
# We need to populate node_type_id_by_name
|
@@ -865,10 +866,11 @@ class SqliteDocumentPersistence(object):
|
|
865
866
|
self.connection.commit()
|
866
867
|
self.cursor.execute("VACUUM")
|
867
868
|
self.cursor = self.connection.cursor()
|
868
|
-
self.cursor.execute("
|
869
|
-
self.cursor.execute("
|
870
|
-
self.cursor.execute("
|
871
|
-
self.cursor.execute("
|
869
|
+
self.cursor.execute("PRAGMA journal_mode=OFF")
|
870
|
+
self.cursor.execute("PRAGMA temp_store=MEMORY")
|
871
|
+
self.cursor.execute("PRAGMA mmap_size=30000000000")
|
872
|
+
self.cursor.execute("PRAGMA cache_size=10000")
|
873
|
+
self.cursor.execute("PRAGMA page_size=4096")
|
872
874
|
|
873
875
|
def dump_in_memory_db_to_file(self):
|
874
876
|
# Connect to a new or existing database file
|
@@ -13,7 +13,7 @@ kodexa/model/entities/product.py,sha256=ZDpHuBE_9FJ-klnkyBvTfPwYOqBkM1wraZMtHqNA
|
|
13
13
|
kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
|
14
14
|
kodexa/model/model.py,sha256=Bjy1n6_9kQLLch-wCUDpT31sTctE2kCGdi4cb1ptZN4,118647
|
15
15
|
kodexa/model/objects.py,sha256=4Oyjs6omlHfwziAK1m2tFk4jSnzN7lFdXACog07ed1c,185124
|
16
|
-
kodexa/model/persistence.py,sha256=
|
16
|
+
kodexa/model/persistence.py,sha256=P4DmC9UdczmjJgXNeeTlhwKH9nSAdzYZOaDTyqaDPOA,69501
|
17
17
|
kodexa/model/utils.py,sha256=6R-3rFiW9irBwj0Mq5yhp7EDXkNUFaeFhr3bWmnlW4g,2961
|
18
18
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
19
19
|
kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
|
@@ -43,7 +43,7 @@ kodexa/testing/test_utils.py,sha256=v44p__gE7ia67W7WeHN2HBFCWSCUrCZt7G4xBNCmwf8,
|
|
43
43
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
44
44
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
45
45
|
kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
|
46
|
-
kodexa-7.0.
|
47
|
-
kodexa-7.0.
|
48
|
-
kodexa-7.0.
|
49
|
-
kodexa-7.0.
|
46
|
+
kodexa-7.0.12399293688.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
47
|
+
kodexa-7.0.12399293688.dist-info/METADATA,sha256=oQ8cDBBYml0HvYWVGK-klGpt_kpMzPARlO5JY0l0wdY,3527
|
48
|
+
kodexa-7.0.12399293688.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
49
|
+
kodexa-7.0.12399293688.dist-info/RECORD,,
|
File without changes
|
File without changes
|