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: Add postgresql support for OpenDAL #2815
Conversation
It sounds a bit crazy, but why not :) |
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
It's a really really crazy idea! Next, Maybe we need to build OpenDAL on SQLite! |
Ok, let's expand OpenDAL to more open areas! |
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR will add postgresql support for OpenDAL.
OHHHHHHH, why? It doesn't make sense to add SQL support in OpenDAL!
You are right. OpenDAL is designed for accessing unstructured data like local fs and s3. And database like postgresql is not good for such use cases. But it doesn't mean we can't do this.
We can store some small (for example, 4KiB) data in database in quick and easy way! We don't need to worry about mysql, pg, clickhouse, xxxdb anymore: use opendal and write data.
Maybe, I'm not convinced and still believe it's useless.
That's Ok. OpenDAL's design makes sure that adding a new service like pg won't affect your existing features at all. Postgresql will under
services-postgresql
feature and only users who enable this feature will need those code.So, What's the performance?
We don't know about it so far. This PR just a start, we will try to do some bench to have a general idea about it's perf.
What's next?
I will add integration test to make this service works. And than we can try to add MySQL, SurrealDB and other dbs.
My current interest is to add databend support so that I can run databend on databend (aha, this is really useless, but funny)!