The Safe Fire!
The Safe Fire!
DTDrizzle Team
Created by ivan on 8/4/2024 in #help
How to get paginated result with the total count?
(you also possibly could so some chaos selecting and then query but i dont think its worth it)
6 replies
DTDrizzle Team
Created by ivan on 8/4/2024 in #help
How to get paginated result with the total count?
for me, i just use batch queries as its not too bad having 2 queries, and i dont have the extra latency this way
6 replies
DTDrizzle Team
Created by nehalist on 7/17/2024 in #help
Types in Next.js Client components
also you should be able to import everything in the types file as type (id hope)
6 replies
DTDrizzle Team
Created by nehalist on 7/17/2024 in #help
Types in Next.js Client components
@nehalist maybe try to make it const enum (ie it wont do as much bundling and will just replace usage with string)
6 replies
DTDrizzle Team
Created by waterchiller on 4/10/2024 in #help
Huge Performance difference between select and query
yeah i thought it was being cool with joins so i didnt have to
5 replies
DTDrizzle Team
Created by waterchiller on 4/10/2024 in #help
Huge Performance difference between select and query
my guess is uses json_array and i dont know how good that really is here
5 replies
DTDrizzle Team
Created by waterchiller on 4/10/2024 in #help
Huge Performance difference between select and query
oh i was wondering this too, i have only done the query but it felt way too slow to be legit
5 replies
DTDrizzle Team
Created by lordbinbash on 3/12/2024 in #help
Dynamic Batch w/Turso
for example:
await drizzleClient.insert(favourites).values(["1","2"].map((n) => ({ advertiserId: n }))
// or
await drizzleClient.insert(favourites).values([{ advertiserId: "1" }, { advertiserId: "2" }])
await drizzleClient.insert(favourites).values(["1","2"].map((n) => ({ advertiserId: n }))
// or
await drizzleClient.insert(favourites).values([{ advertiserId: "1" }, { advertiserId: "2" }])
4 replies
DTDrizzle Team
Created by lordbinbash on 3/12/2024 in #help
Dynamic Batch w/Turso
i am not sure about this specific issue, but you can insert list of values in a single insert query (which you dont need the batch here)
4 replies