CrazyCroatKid
Explore posts from serversKKinde
•Created by CrazyCroatKid on 10/7/2024 in #💻┃support
Unexpected Server error with Remix SDK and Cloudflare
So this issue is occuring when I have my domain proxied through cloudflare. I have local, staging and production setup and I made sure to test with staging to see that turning proxy on and off was the issue.
I get "Unexpected Server Error" when I try to login with a gmail account and the console shows "Failed to load resource: the server responded with a status of 500 ()"
Is there more network request information, or info on my cloudflare setup I can share that would help us figure out why this is happening?
2 replies
DTDrizzle Team
•Created by CrazyCroatKid on 8/6/2024 in #help
Right way to make UpdatedAt column in Drizzle?
I'm trying to copy the way prisma was able to create a column that would update to the newest time when a row is changed. Is this a good implementation below or have people had issues with this that have tried to implement it?
A reference example the way Prisma had it
3 replies
DTDrizzle Team
•Created by CrazyCroatKid on 5/6/2024 in #help
How to retry seriazible transactions Drizzle Orm
Hello everyone,
I'm currently working with Drizzle ORM in a Node.js application and facing challenges handling high concurrency when multiple instances of my program are interacting with the same PostgreSQL database. Specifically, I have multiple processes running that update a scraped status in a URL table. When one process is updating a row, I want the other processes to skip this row and proceed to the next available one instead of trying to update the same row.
However, I'm encountering frequent serialization errors like "could not serialize access due to concurrent update," which cause my programs to crash completely.
Here's a simplified version of how my transaction logic is set up:
Is there a best way to handle retrying when one process is encountering "could not serialize access due to concurrent update"?
Thanks!
2 replies