afe2dfa1c8
This commit introduces a new function, `insert_mongo_documents_to_postgres`, which allows for the bulk updating of documents in a PostgreSQL table. It takes a list of document IDs and a dictionary containing the updated data as input. This method simplifies the process by reducing the number of individual insert statements required. The changes include: 1. Adding a new function `insert_mongo_documents_to_postgres` to handle the bulk update. 2. Updating the existing code to call this new function when required. 3. Refactoring the `MongoDocumentInserter` class to encapsulate common functionality for document insertion and updating. This refactoring enhances maintainability and efficiency by reducing redundancy in the codebase.
28 lines
653 B
Plaintext
28 lines
653 B
Plaintext
################################################################################
|
|
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
|
|
################################################################################
|
|
|
|
/.vs/new_dbsync/FileContentIndex
|
|
/.vs
|
|
*.pyc
|
|
/cache/series/*.json
|
|
/cache/episodes/*.json
|
|
/cache/cast/*.json
|
|
/cache/crew/*.json
|
|
/cache/guestcast/*.json
|
|
/cache/guestcrew/*.json
|
|
/cache/aliases/*.json
|
|
*.DS_Store
|
|
*.log
|
|
/pyproject.toml
|
|
dbsync.log.*
|
|
.idea
|
|
/log
|
|
/venv
|
|
/temp/post_tvmaze_updates.json
|
|
/temp/post_tvmaze_updates.json.*
|
|
/temp/tvmaze_updates.json
|
|
/temp.skip_ids.txt
|
|
/archived
|
|
settings/tvsync_settings.cfg
|