Skip to content

Identical queries return slightly different sql #28

@0Lucifer0

Description

@0Lucifer0

Two exactly identical queries running twice are not resolving exactly the same sql because of the interlock increment sequence.

This may cause some Parameter Sniffing issues as things like sql server will cache the query plan base on the text hash so any small change would get cached differently.

cf https://dba.stackexchange.com/questions/291597/parameter-sniffing-and-multiple-plans-in-cache

This is caused by
https://github.com/neisbut/EntityFramework.MemoryJoin/blob/master/src/EntityFramework.MemoryJoin/Internal/MappingHelper.cs#L220

Trying to understand why it's here in the first place ? What is this line trying to achieve ? @neisbut

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions