You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
0 commit comments