Image uploading concurrency Prisma
Hello,
I am using Cloudflare as CDN and the upload size limit is 100MB. I want to upload multiple images that may be in total bigger than 100MB.
I thought of splitting the images to its own requests so 10 images are 10 requests to upload to compatible S3 storage (Backblaze B2).
I have an Image model and each user can have a max of 15 images saved in the database. Currently I do transaction like this:
But I don't like this way since everyone who tries to upload is waiting because of 1 image. I woud like to lock per user rather than lock whole table.
1 Reply
Or maybe something even better if possible