Files
payloadcms/test
Alessio Gravili 6d6c9ebc56 perf(drizzle): 2x faster db.deleteMany (#13255)
Previously, `db.deleteMany` on postgres resulted in 2 roundtrips to the
database (find + delete with ids). This PR passes the where query
directly to the `deleteWhere` function, resulting in only one roundtrip
to the database (delete with where).

If the where query queries other tables (=> joins required), this falls
back to find + delete with ids. However, this is also more optimized
than before, as we now pass `select: { id: true }` to the findMany
query.

---
- To see the specific tasks where the Asana app for GitHub is being
used, see below:
  - https://app.asana.com/0/0/1210871676349299
2025-07-25 15:46:09 -07:00
..
2025-07-24 14:00:52 -04:00
2025-07-24 14:00:52 -04:00
2025-07-24 14:00:52 -04:00
2024-10-30 17:56:50 +00:00
2025-07-24 14:00:52 -04:00
2024-08-13 12:54:33 -04:00
2025-07-24 14:00:52 -04:00
2025-07-24 14:00:52 -04:00
2025-07-18 06:48:27 -04:00
2024-07-23 13:44:44 -04:00
2024-05-25 15:45:05 +00:00
2025-07-24 14:00:52 -04:00
2025-07-18 06:48:27 -04:00
2025-03-05 19:14:35 +00:00