-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: external DB support #1397
Comments
PostgreSQL would be a good candidate IMO |
I agree but I think the best consideration is to support ORM, something like SQLAlchemy ORM. As long as we adhere to Object Relational Mapper compatible statements, many major databases could be supported! SQLAlchemy presently supports a variety of dialects including PostgreSQL, MySQL and MariaDB, SQLite, Oracle, and Microsoft SQL Server. |
@lainedfles I am in full agreement that we need a more flexible solution to data storage, but I get real nervous about ORMs, heard too many horror stories of absolutely unhinged monstrosities of queries full of JOINS being emitted by them. They can make writing the code easier, but it's usually at the cost of efficiency. |
Postgres would be the best use case here. |
Any update on this one? Where is the data being handled to be stored in database? at /rag/utils.py ? |
Not sure whether you are talking about storing the information relating to connecting to the database but I do not believe this path has any relation to that. I am currently looking at creating relational diagram based off of the models located at backend\apps\web\models. I also believe SQLAlchemy ORM is the best option to implement this from a relational database perspective. Would there also be considerations for something like Mongo in the future? |
IMO, MongoDB isn't appropriate for the practical use case here as Open WebUI database is well defined and structured |
No description provided.
The text was updated successfully, but these errors were encountered: