Skip to content

Cleaning cache causes incorrect mapping #81

@lukashovancik

Description

@lukashovancik

Hello,

I have 20 workers executing the same code. In the code I have a query where I search for an order and list of the order products . After that, I map the result of the query to the order object class AutoMapper.MapDynamic<Order>(results).First(); , but from time to time I am missing some order products. Only when I remove line related with the cache Slapper.AutoMapper.Cache.ClearInstanceCache(); everything is working properly but of course cache is rising, there is no way to clean it.

Is possible that Slapper.AutoMapper.Cache.ClearInstanceCache() affect other order queries running in the different workers ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions