Skip to content

Conversation

@mvorisek
Copy link
Contributor

@mvorisek mvorisek commented Aug 2, 2025

Inserts without autoincrement (post inserted ID) can be sent to DB grouped together hence the extra test.

improves test added in #12086

Currently the query count for inserts with and without autoincrement are the same, but in the future, these counts can improved using changes like #8260, so better to have this usecase tested.

@greg0ire
Copy link
Member

greg0ire commented Aug 2, 2025

Have you seen #11978 ?

@mvorisek
Copy link
Contributor Author

mvorisek commented Aug 2, 2025

Thank you for pointing that PR out. I was not aware of it.

This test is still stronger as it tests also the 2nd level cache.

When merging up the query count might need to be reduced.

Inserts without post-inserted ID can be sent to DB grouped together
hence the extra test.
@mvorisek mvorisek force-pushed the add_fixed_id_insert_count_query_test branch from fa3b05f to 5b2060e Compare August 6, 2025 06:23
@mvorisek mvorisek changed the title Add 2nd level cache test for insert without autoincrement Add 2nd level cache test for insert without post-inserted ID Aug 6, 2025
@greg0ire greg0ire added this to the 2.20.6 milestone Aug 8, 2025
@greg0ire greg0ire merged commit ee2c3a5 into doctrine:2.20.x Aug 8, 2025
71 checks passed
@greg0ire
Copy link
Member

greg0ire commented Aug 8, 2025

Thanks @mvorisek

}

/**
/* @param SupportedCacheUsage $cacheUsage
Copy link
Member

Choose a reason for hiding this comment

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

Didn't notice this before merging.

Suggested change
/* @param SupportedCacheUsage $cacheUsage
* @param SupportedCacheUsage $cacheUsage

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.

3 participants