Closed GoogleCodeExporter closed 9 years ago
The attached QueryResultCache.cs file updates the GetHashKey(this IQueryable
query) method so that the query's parameter values are included when generating
the Hash Key. This provides a unique hash in situations where queries having
different argument values have identical values in their IQueryable.Expression
property.
Original comment by jamesebu...@gmail.com
on 13 Dec 2010 at 10:09
Attachments:
I was able to reproduce this. I did notice that a few methods were removed from
this class and could be placed back in.
Paul what do you think?
Original comment by bniemyjski
on 14 Dec 2010 at 12:44
DataContext.GetCommand has a large performance hit. There seems to be a
problem in that the expression has both local variables (from your unit test).
This is only an issue when you have the same query using 2 diff local
variables. I'm trying to come up with a better solution. But for now, I think
we'll just have to take the performance hit.
Original comment by paul.wel...@gmail.com
on 27 Dec 2010 at 2:24
This issue was updated by revision r2080.
- fix bug with GetHashKey and Contains not being unique
Original comment by paul.wel...@gmail.com
on 29 Dec 2010 at 4:17
Was able to fix this by handling arrays and lists correctly in the expression
tree visitor.
Original comment by paul.wel...@gmail.com
on 29 Dec 2010 at 4:18
I saw the faster fix. Great job!
Original comment by jamesebu...@gmail.com
on 4 Jan 2011 at 7:09
Original issue reported on code.google.com by
jamesebu...@gmail.com
on 13 Dec 2010 at 10:04Attachments: