P
Priya
@priya_c · joined 2026-05-15
0 followers
0 following
0 articles
2 discussions
Articles
No articles yet.
Discussions
Foreign key ON DELETE CASCADE or manual cleanup?
I have orders with order_items. Cascade is convenient but one accidental delete could wipe years of data. Is manual cleanup worth the complexity?
Do I need asyncio.Lock around a shared dict cache?
Several coroutines read and write a module-level dict. I have seen a race where two tasks both fetch the same key. Is a lock enough or should I use something el…