GPTCache icon indicating copy to clipboard operation
GPTCache copied to clipboard

[Feature]: Add support for async connection and operations for PostgreSQL as Cache Storage provider

Open andre-meneses-fivestars opened this issue 2 years ago • 1 comments

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

I already use a PostgreSQL database with an async connection in the project where I'm also using GPTCache and would like the connection to that DB for the GPT Cache Storage also to be async.

Describe the solution you'd like.

Cache Base would accept a connection string for PostgreSQL in the format postgresql+asyncpg://{DATABASE_URI} and those connections to the DB would be async.

Describe an alternate solution.

No response

Anything else? (Additional Context)

No response

andre-meneses-fivestars avatar Jul 03 '23 09:07 andre-meneses-fivestars

Thank you for submitting your proposal. We appreciate your suggestion, which is already part of our plan. However, based on our latest research findings, we have identified that the majority of the time consumption occurs during the model's runtime. Additionally, we must also consider the importance of the storage access time.

SimFG avatar Jul 03 '23 11:07 SimFG