Hello :slightly_smiling_face: I have some rather s...
# talk-keto
q
Hello 🙂 I have some rather simple questions for anyone involved in the keto's codebase, looked at the source but struggling to figure out due to my absolute lack of Go knowledge, so here we go: • Do the Expand API do multiple database roundtrips? • Are the transactional tuple operations executed in a single database roundtrip or does Ory open somekind of transaction and start throwing individual commands?
s
• expand typically does multiple db calls (depending on the results in the previous query, it might need to do more) • on transactional operations, there is multiple queries in one transaction the second case could be quite easily optimized, at least into two queries (one for all inserts, one for all deletes)
q
thank you Patrik ❤️