Ghaur
DTDrizzle Team
•Created by Ghaur on 3/13/2025 in #help
PGSql Batch/Merge Queries for Perforamnce
I currently have several queries that execute sequentially but they are somewhat independant of one another in that they dont need each others output.
A psuedo code example is
Is there a way using Drizzle ORM to batch these so that it only costs one round trip to the DB?
2 replies
DTDrizzle Team
•Created by Ghaur on 9/25/2024 in #help
Create a Query and insert into sql`` template
TLDR: How do I take a query (such as
PgSelectBase
) and put it inside an sql
template?
I want to use the query builder to create a query that I will then put into a (Postgres) TEMPORARY TABLE
to allow me to query it twice and not have to save on performance.
I have got the following:
This currently results in: error: cannot insert multiple commands into a prepared statement
What I think I need is to have the statement prepared fully so it can be inserted but I can not figure out how to 😦1 replies