sql
SELECT `User`.`id` FROM `User` WHERE `User`.`email` = ?;
UPDATE `prisma`.`User` SET `firstName` = ? WHERE `prisma`.`User`.`id` IN (?) AND `prisma`.`User`.`email` = ?;
SELECT `User`.`id` FROM `User` WHERE `User`.`id` = ?;
Fixes and improvements
Prisma Client
- [Unnecessary `SELECT` may be generated by `upsert()`](https://github.com/prisma/prisma/issues/5686)
- [Inefficient deleteMany query generation](https://github.com/prisma/prisma/issues/7232)
- [Prisma can generate an overly complex and inefficient query in some cases](https://github.com/prisma/prisma/issues/7894)
- [`deleteMany` optimisation](https://github.com/prisma/prisma/issues/8239)
- [CockroachDB: Highly Variable Query Response Times](https://github.com/prisma/prisma/issues/11317)
- [Extremely poor relation where clause query](https://github.com/prisma/prisma/issues/14688)
- [Enums loaded as part of transaction after `UPDATE`, slowing down transaction.](https://github.com/prisma/prisma/issues/14955)
- [ MongoDB `deleteMany` seems to send 2 identical read queries first before triggering the actual delete](https://github.com/prisma/prisma/issues/15085)
- [Query validation messages reference color output even if colors are not enabled](https://github.com/prisma/prisma/issues/17706)
- [Prisma generates unnecessary subquery, which is inefficient](https://github.com/prisma/prisma/issues/17879)
- [Unnecessary INNER JOIN when doing nested queries](https://github.com/prisma/prisma/issues/18343)
- [Semver checks for yarn and typescript could potentially fail](https://github.com/prisma/prisma/issues/18751)
- [Prisma overrides type caching when in PGBouncer mode, causing 9,000 enum queries per second on a production system](https://github.com/prisma/prisma/issues/19325)
- [deleteMany generates double WHERE filter](https://github.com/prisma/prisma/issues/19950)
- [Prisma generate command crashes with `RustPanic: RuntimeError: panicked at 'internal error: entered unreachable code', query-engine/prisma-models/src/field/scalar.rs:93:50`](https://github.com/prisma/prisma/issues/20037)
- [Duplicated keys in `metrics` properties](https://github.com/prisma/prisma/issues/21069)
- [Prisma Client extension with method override and `jest-mock-extended` or `vitest-mock-extended` expects `never` input ](https://github.com/prisma/prisma/issues/21136)
Language tools (e.g. VS Code)
- [Auto-completion suggests attributes already present ](https://github.com/prisma/language-tools/issues/1326)
- [Quick Fix: when `schema` is defined in a block without the `schemas` attribute](https://github.com/prisma/language-tools/issues/1333)
Prisma Engines
- [CockroachDB: get_columns can hit inefficiency inside pg_class](https://github.com/prisma/prisma-engines/issues/4250)
Credits
Huge thanks to onichandame, fqazi, KhooHaoYit, alencardc, Oreilles, christianledgard, skyzh, alula, michaelpoellath, RobertCraigie, icanipa, jiashengguo, stephenwade, darthmaim, ludralph, Gerschtli, andyjy for helping!
💼 We're hiring!
If you're interested in joining our growing team to help empower developers to build data-intensive applications, Prisma is the place for you.
We're currently hiring for the following roles:
- [Software Engineer](https://boards.greenhouse.io/prisma/jobs/6948042002)
- [Senior Software Engineer (Rust)](https://boards.greenhouse.io/prisma/jobs/6940273002)
- [Engineering Manager: Prisma Data Platform](https://boards.greenhouse.io/prisma/jobs/6927046002)
Feel free to read the job descriptions and apply using the links provided.