predaytor
Explore posts from serversDTDrizzle Team
•Created by predaytor on 6/6/2024 in #help
Represent a table that contains an variants with strict keys (aka `Record` mapped type)?
I have a table that represents words (it's an English learning platform) where each word should have two examples (eg US and UK). How to display such a connection? This is not a repeater field where we can create many records attached to a word, but rather an already defined dataset with (in our case) two keys.
2 replies
CDCloudflare Developers
•Created by predaytor on 6/2/2024 in #general-help
Cache API vs KV
Which is better for server-side caching of database (d1) calls (aka direct data responses from the backend) - Cache API or KV Storage? The API is quite similar, but the Cache API relies directly on the CDN. This is a CRM-like application with users, roles, etc., so the usual
cache-control
cannot be applied here, as we need a way to programmatically invalidate on some CRUD operations (e.g. display a list of users while invalidate the cache when adding new ones to the database, with routes like /users/students
, /users/students/new
).3 replies
DTDrizzle Team
•Created by predaytor on 5/30/2024 in #help
Error handling
Should
execute
be used to correctly throw errors, or is it the same in this case?
2 replies
DTDrizzle Team
•Created by predaytor on 5/30/2024 in #help
The result after join (table alias)
How to configure alias here? The result of the join return the original table name (
library_level
), but I expect libraryLevel
, which is defined at the application level.
2 replies
DTDrizzle Team
•Created by predaytor on 5/18/2024 in #help
Write SQL query in Drizzle?
Hey! How to write a similar query in drizzle? Basically, I need a way to count the total number of pages in a single query (should I?) for offset pagination?
vs. what I found on stackoveflow:
6 replies
CDCloudflare Developers
•Created by predaytor on 3/18/2024 in #general-help
Cloudflare for high load multiuser application
I'm thinking of Cloudflare's stack for a web app (generally a learning platform with admin features, users, chats, full-text search etc.).
Is there anything I should be aware of, specifically the limitations of the D1 database for such case? What about user concurrency? Is there any potential problems integrating solutions like Durable Objects and Websockets? The application framework is Remix (Vite).
8 replies