Skip to content

Conversation

@ThyMinimalDev
Copy link
Contributor

@ThyMinimalDev ThyMinimalDev commented Dec 5, 2025

What does this PR do?

Optimized child event type creation by using createManyAndReturn in handleChildrenEventTypes. This removes a follow-up fetch and reduces transaction time.

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

Summary by cubic

Optimized child event type creation by using createManyAndReturn in handleChildrenEventTypes. This removes a follow-up fetch and reduces transaction time.

  • Performance
    • Return created events directly from createManyAndReturn.
    • Eliminates the extra findMany used to map id/userId.
    • Preserves skipDuplicates behavior.

Written for commit 6f837d8. Summary will update automatically on new commits.

@vercel
Copy link

vercel bot commented Dec 5, 2025

Deployment failed with the following error:

You must set up Two-Factor Authentication before accessing this team.

View Documentation: https://vercel.com/docs/two-factor-authentication

@vercel
Copy link

vercel bot commented Dec 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
cal-companion Ready Ready Preview Comment Dec 8, 2025 9:50am
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
cal Ignored Ignored Dec 8, 2025 9:50am
cal-eu Ignored Ignored Dec 8, 2025 9:50am

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@ThyMinimalDev ThyMinimalDev enabled auto-merge (squash) December 8, 2025 10:09
@ThyMinimalDev ThyMinimalDev merged commit 1e673f1 into main Dec 8, 2025
40 of 41 checks passed
@ThyMinimalDev ThyMinimalDev deleted the perf-handle-children-eventtypes-create-many-and-return branch December 8, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants