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

chore: migrate from MongoDB to Supabase/PostrgresSQL #8

Open
machuwey opened this issue Nov 9, 2024 · 3 comments
Open

chore: migrate from MongoDB to Supabase/PostrgresSQL #8

machuwey opened this issue Nov 9, 2024 · 3 comments
Labels

Comments

@machuwey
Copy link
Collaborator

machuwey commented Nov 9, 2024

Explanation

Right now we use MongoDB to store offchain data, which isn´t an optional solution for the kind of product we are building, as we are handling finantial data a relational type database is more suitable.

Proposed solution

Use PostreSQL with a provider like Supabase which offers a nice freetier through a ORM like Prisma.

// TODO: explain futher

@aybanda
Copy link

aybanda commented Nov 12, 2024

Hey @machuwey , I see what you mean about the database situation! Moving from MongoDB to PostgreSQL makes a lot of sense, especially since project is dealing with financial data. PostgreSQL will give better data integrity and security.
Using a provider like Supabase is a great idea too! They offer a nice free tier as you mentioned, which can help project save costs while you get everything set up. Plus, integrating with an ORM like Prisma allows to interact with the database using a more intuitive API. It’ll help manage available data models and migrations without getting bogged down in raw SQL.

I’d be happy to take on this issue.

@Michaelkingsdev
Copy link

To migrate from MongoDB to Supabase/PostgreSQL, I will analyze the current MongoDB schema and design a relational database schema tailored for PostgreSQL, ensuring it aligns with financial data requirements. Using Supabase for hosting and Prisma as the ORM, I’ll implement the schema, migrate the existing data with necessary transformations, and refactor the application to utilize PostgreSQL. Thorough testing will ensure data accuracy, query performance, and application stability. This approach will enhance data integrity, scalability, and align with the product's long-term goals.

@machuwey , I will be glad if this issue is assigned to me. I am Fullstack developer. My ETA is 48hrs. Thanks

@Nityam573
Copy link

To migrate from MongoDB to Supabase/PostgreSQL, I will analyze the current MongoDB schema and design a relational database schema tailored for PostgreSQL, ensuring it aligns with financial data requirements.
@machuwey please assign this task to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants