Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

perf: optimized collection create when versions are enabled#14885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
rjgtav wants to merge1 commit intopayloadcms:main
base:main
Choose a base branch
Loading
fromrjgtav:rjgtav/perf-payload-create-with-version

Conversation

@rjgtav
Copy link
Contributor

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.

jhb-dev and rilrom reacted with thumbs up emoji
@rjgtavrjgtavforce-pushed therjgtav/perf-payload-create-with-version branch from16481eb toba4d194CompareDecember 10, 2025 13:16
@rjgtavrjgtav changed the titleperf(payload): optimized collection create when versions are enabledperf: optimized collection create when versions are enabledDec 10, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@rjgtav

[8]ページ先頭

©2009-2025 Movatter.jp