Allow the IHqlGeneratorForMethod to decide how to build a query cache key

Description

The linq provider caches a query assuming that ALL constants will be turned into HQL parameters. Sometimes this is not the case. A linq extension that selects a concrete entity property based on a constant value will never pass that value into HQL.

Environment

None

Attachments

1

Activity

Show:

Frédéric Delaporte January 20, 2018 at 10:46 PM

As of 5.1, query plan having non-parameterized constants are no more cached, removing the motivation for this feature.

Frédéric Delaporte January 18, 2018 at 6:26 PM

Moved here.

Alex Zaytsev July 9, 2015 at 4:21 AM

Dynamic component part has been fixed as

Sÿl April 22, 2015 at 9:55 AM

I agree this issue becomes a real problem when optimisations are required.
I reviewed the patch from and it seems quite ok, why this long to react on it?

Tamizhvendan S July 2, 2014 at 12:32 PM

Any Solutions for this issue ?

Can we add the patch provided by Daniel, Guenter ?

Obsolete

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created April 20, 2011 at 9:27 AM
Updated January 20, 2018 at 10:47 PM
Resolved January 20, 2018 at 10:46 PM
Who's Looking?