Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Firebase now supports mass transfer of data #18

Merged
merged 2 commits into from
Dec 28, 2024

Conversation

slashexx
Copy link
Collaborator

Description:

This feature introduces the ability to transfer data from Firebase to MongoDB in bulk, with each document being inserted into a separate collection based on a unique identifier (e.g., _id). Previously, the data was inserted into a single collection. This change enhances flexibility by allowing data to be distributed across multiple collections, making it more modular and easier to manage.
Changes:

  • Dynamic Collection Creation: Each document is now inserted into a collection named dynamically using its unique identifier or another field (e.g., _id).
  • Bulk Data Insertion: The system now supports inserting multiple documents at once, each into its corresponding collection.
  • Refactored MongoDB Insertion Logic: The SendData function has been refactored to iterate through the transformed data and insert each document into its respective collection.

Benefits:

Improves data organization by distributing documents into different collections.
Facilitates easier data retrieval and management based on document attributes.
Increases scalability by separating data logically across collections rather than using a single large collection.

Usage:

The change automatically assigns each document to its respective MongoDB collection based on its _id.
The collections are dynamically created and populated as new data is processed.

@slashexx
Copy link
Collaborator Author

PTAL @SkySingh04 :D

@slashexx slashexx requested a review from SkySingh04 December 28, 2024 19:20
Copy link
Owner

@SkySingh04 SkySingh04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@SkySingh04 SkySingh04 merged commit f708526 into main Dec 28, 2024
1 of 2 checks passed
@SkySingh04 SkySingh04 deleted the slashexx/firebase-mass branch January 1, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants