titongo
Explore posts from serversDTDrizzle Team
•Created by francis on 8/8/2024 in #help
What's the recommended way to do a basic filter by a boolean column's value?
Is it not possible to use
.where(eq(appointment.canceled, true))
3 replies
DTDrizzle Team
•Created by titongo on 8/3/2024 in #help
limiting a join when filtering by an extra field.
basically, turning this from the drizzle docs into a relational query:
https://orm.drizzle.team/docs/select#select-from-subquery
Select from subquery
Just like in SQL, you can embed queries into other queries by using the subquery API:
Subqueries can be used in any place where a table can be used, for example in joins:
2 replies
DTDrizzle Team
•Created by titongo on 6/15/2024 in #help
nesting db calls in transactions without using the callback argument
Thanks a lot!
6 replies
DTDrizzle Team
•Created by titongo on 6/15/2024 in #help
nesting db calls in transactions without using the callback argument
🤔
6 replies
DTDrizzle Team
•Created by titongo on 6/15/2024 in #help
nesting db calls in transactions without using the callback argument
bump I guess?
6 replies
DTDrizzle Team
•Created by Hello, I’m Allie! on 5/11/2024 in #help
Environment-based Connection Configs?
oh okay thanks
5 replies
DTDrizzle Team
•Created by Hello, I’m Allie! on 5/11/2024 in #help
Environment-based Connection Configs?
Hello there, were you able to do this? I'm finding this section of the docs confusing but IIUC this is it, right? https://orm.drizzle.team/docs/get-started-sqlite#cloudflare-d1
5 replies
DTDrizzle Team
•Created by titongo on 12/14/2023 in #help
Extremely high usage due to weird ordering used by drizzle
11 replies
DTDrizzle Team
•Created by titongo on 12/14/2023 in #help
Extremely high usage due to weird ordering used by drizzle
11 replies
DTDrizzle Team
•Created by titongo on 12/14/2023 in #help
Extremely high usage due to weird ordering used by drizzle
If anyone is facing something similar, here is my (extremely ugly) workaround:
11 replies
DTDrizzle Team
•Created by titongo on 12/14/2023 in #help
Extremely high usage due to weird ordering used by drizzle
Sure!
11 replies
DTDrizzle Team
•Created by titongo on 12/14/2023 in #help
Extremely high usage due to weird ordering used by drizzle
I tried replacing it with
and row reads went from 20.000 to 37.
11 replies
DTDrizzle Team
•Created by titongo on 12/14/2023 in #help
Extremely high usage due to weird ordering used by drizzle
for some reason, the whole row_number() thing is slowing things down, and what is causing it is
orderBy: desc(postsTable.createdAt)
11 replies
DTDrizzle Team
•Created by titongo on 12/14/2023 in #help
Extremely high usage due to weird ordering used by drizzle
particularly, this portion of the query seems to be problematic
11 replies
DTDrizzle Team
•Created by titongo on 12/14/2023 in #help
Extremely high usage due to weird ordering used by drizzle
11 replies
DTDrizzle Team
•Created by titongo on 12/8/2023 in #help
+21.000 row reads in query, how can I improve performance?
thanks for all the help
103 replies
DTDrizzle Team
•Created by titongo on 12/8/2023 in #help
+21.000 row reads in query, how can I improve performance?
guess I have something new to learn for tomorrow
103 replies
DTDrizzle Team
•Created by titongo on 12/8/2023 in #help
+21.000 row reads in query, how can I improve performance?
Oh
103 replies
DTDrizzle Team
•Created by titongo on 12/8/2023 in #help
+21.000 row reads in query, how can I improve performance?
Man I'm sorry for taking so much time from you
103 replies