bartman081523 commited on
Commit
026ec47
·
1 Parent(s): d8cc20c

populate db

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. gematria.db +2 -2
app.py CHANGED
@@ -298,7 +298,7 @@ def run_app():
298
  # Pre-populate the database
299
  logging.info("Starting database population...")
300
  phrases_to_insert = [] # Collect phrases before inserting in bulk
301
- for max_phrase_length in range(1, 5): # Populate for phrases up to 5 words
302
  for gematria_sum, phrase, book, chapter, verse in tqdm(populate_database(1, 39, max_phrase_length=max_phrase_length), desc=f"Populating Database (Max Length: {max_phrase_length})"): # Books 1 to 39
303
  phrases_to_insert.append((gematria_sum, phrase, book, chapter, verse))
304
  if len(phrases_to_insert) >= 1000: # Insert in batches of 1000 for efficiency
 
298
  # Pre-populate the database
299
  logging.info("Starting database population...")
300
  phrases_to_insert = [] # Collect phrases before inserting in bulk
301
+ for max_phrase_length in range(1, 6): # Populate for phrases up to 5 words
302
  for gematria_sum, phrase, book, chapter, verse in tqdm(populate_database(1, 39, max_phrase_length=max_phrase_length), desc=f"Populating Database (Max Length: {max_phrase_length})"): # Books 1 to 39
303
  phrases_to_insert.append((gematria_sum, phrase, book, chapter, verse))
304
  if len(phrases_to_insert) >= 1000: # Insert in batches of 1000 for efficiency
gematria.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a3fff2778c6444cf9818af0a203c662ca75d295b93c5921e1de8414dcaaf7650
3
- size 101384192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:119142f15d8437060680fd578af07edccb25b1255fa74711044b344f1f9620fc
3
+ size 105299968