Skip to content

perf: remove n+1#560

Open
nandi95 wants to merge 3 commits into
spatie:mainfrom
nandi95:main
Open

perf: remove n+1#560
nandi95 wants to merge 3 commits into
spatie:mainfrom
nandi95:main

Conversation

@nandi95

@nandi95 nandi95 commented Jun 19, 2026

Copy link
Copy Markdown

Previously when you passed in an array of tags if would do a first or create for every single element.
This change first queries the tags table and only does a firstOrCreate for tags that don't already exists.
All behaviour otherwise is preserved.

nandi95 and others added 3 commits June 19, 2026 08:35
Removes the duplicated query skeleton so the single- and multi-lookup
paths share one implementation and cannot drift apart.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants