cognita icon indicating copy to clipboard operation
cognita copied to clipboard

Use prisma transactions for write queries to correctly automatically rollback in error situations

Open chiragjn opened this issue 1 year ago • 2 comments

See: https://prisma-client-py.readthedocs.io/en/stable/reference/transactions/#usage

chiragjn avatar Aug 11 '24 11:08 chiragjn

This is a good one, giving some context for dev working on this : Creation of a collection is 3 step process :

1. Create a postgres row in table : "collections"
2. Create a vector document in vector db, defaults : "qdrant"
3. Then Associate the collection created with associated data sources.

Say if step 2 was failing, which was the case as I didnt looked that profiles --profile ollama and --profile --dev was needed, same collection cant be made 2nd time; as postgres already knows that this collection exists.

jalotra avatar Sep 08 '24 12:09 jalotra

hello @chiragjn I want to work on this issue. Can you please assign me this issue?

ayeankit avatar Jun 02 '25 11:06 ayeankit