Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
perf: optimized collection create when versions are enabled (#14885)
### What? Optimized the collection create operation when versions are enabled. ### Why? To reduce the total request time when creating a new entry on a collection with versions enabled. ### How? By passing returning=false to the saveVersion method, as the result is not needed. Also updated drizzle's createVersion operation to ignore the result when returning==false. This saves multiple database queries, specially on collections with relationships and other complex fields, as it no longer needs to load the new entry after creation. --------- Co-authored-by: Ricardo Tavares <rtavares@cloudflare.com>
R
Ricardo Tavares committed
25813a7ba3314fd1cbd9ab4bbc963ba10e1dcb8d
Parent: 00fb6e8
Committed by GitHub <noreply@github.com>
on 1/9/2026, 2:42:09 PM