bartman081523 commited on
Commit
115ce47
·
1 Parent(s): c1f45eb

populate db

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. gematria.db +2 -2
  3. gematria.db-journal +2 -2
app.py CHANGED
@@ -265,7 +265,7 @@ def run_app():
265
  # Pre-populate the database
266
  logging.info("Starting database population...")
267
  phrases_to_insert = [] # Collect phrases before inserting in bulk
268
- for gematria_sum, phrase, book, chapter, verse in tqdm(populate_database(1, 39, max_phrase_length=3), desc="Populating Database"): # Books 1 to 39
269
  phrases_to_insert.append((gematria_sum, phrase, book, chapter, verse))
270
  if len(phrases_to_insert) >= 1000: # Insert in batches of 1000 for efficiency
271
  insert_phrases_to_db(phrases_to_insert)
 
265
  # Pre-populate the database
266
  logging.info("Starting database population...")
267
  phrases_to_insert = [] # Collect phrases before inserting in bulk
268
+ for gematria_sum, phrase, book, chapter, verse in tqdm(populate_database(1, 39, max_phrase_length=5), desc="Populating Database"): # Books 1 to 39
269
  phrases_to_insert.append((gematria_sum, phrase, book, chapter, verse))
270
  if len(phrases_to_insert) >= 1000: # Insert in batches of 1000 for efficiency
271
  insert_phrases_to_db(phrases_to_insert)
gematria.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d8ae62432a24f36453d7080be5d95162d949ac77f006db0a0a81000c40abcabf
3
- size 65466368
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:608f20665f9880dbf665ef83b7a655d66cb01c5f1756aaa21dcc23d2bae5586e
3
+ size 84742144
gematria.db-journal CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c2ff707a32b432b7883756f3d0db45fc3031ffefa7f890197ac1d9bed4fb9849
3
- size 3884488
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdd6ae6a2b5c7177e47a798aa06924df1836e348f7bae234fe273814c8f6e9b7
3
+ size 25136