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

Port TrustDB from SQLite to PostgreSQL #2634

Open
bbopar opened this issue Jan 22, 2025 · 0 comments
Open

Port TrustDB from SQLite to PostgreSQL #2634

bbopar opened this issue Jan 22, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@bbopar
Copy link

bbopar commented Jan 22, 2025

Is your feature request related to a problem? Please describe.

The current trust score database system primarily supports SQLite, and there is a need to extend it to support PostgreSQL-specific extensions without breaking existing functionality. The challenge is to ensure seamless integration while maintaining backward compatibility, handling potential async issues, and meeting performance expectations.

Describe the solution you'd like

The solution involves introducing PostgreSQL extensions through modular updates to the existing system. Key updates include:

Adding necessary dependencies in package.json.

Implementing trustscoreDb.getInstance() to dynamically initialize the appropriate database adapter. (Design consideration could be changed if showing issues)

Ensuring both PostgreSQL and SQLite functionalities coexist with proper fallbacks.

Describe alternatives you've considered

Considering the design approach as extenstion of database and arhitecture of using it should be easily added without breaking any existing structure 

Additional context

Upcoming development tasks include:

Testing

Address async function concerns.

Ensure PostgreSQL features work as expected.

Validate SQLite backward compatibility.

Measure and optimize performance.

Documentation

Provide detailed setup instructions.

Offer configuration options.

@bbopar bbopar added the enhancement New feature or request label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant