Moving
http://docs.transfer-orm.com/html/transferapi/transfer/com/Transfer.html#isCached()

>From packaged to public should do the trick for the situation you describe.

If an object has been discard()'d, then it will be listed as not as being in
the cache, as the SoftReference has been cleared at that point.

Let me know how that goes for you, and I'll commit the fix to SVN.

Interesting problem though - I totally see the issue.

Mark

On Wed, Aug 11, 2010 at 4:00 PM, Mick Hutchinson <hutchinso...@gmail.com>wrote:

> Mark,
>
> Not even sure this is possible but would there be any way to add
> methods to an ObjectCache to check if an object has been queued for
> discarding? We're seeing issues whereby bulk operations performed
> directly against the database followed by relevant discard calls are
> not performing ideally. Subsequent calls to a parent object to
> retrieve a child object are effectively creating dirty reads from
> cache. It would be of great help to add an optional boolean parameter
> to the Transfer.getMethod() which, set to true, checks if the object
> is in cache AND IS NOT in the discard queue.
>
> Mick.
>
> --
> Before posting questions to the group please read:
>
> http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
>
> Try out the new Transfer ORM Custom Google Search:
> http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8
>
> You received this message because you are subscribed to the Google Groups
> "transfer-dev" group.
> To post to this group, send email to transfer-dev@googlegroups.com
> To unsubscribe from this group, send email to
> transfer-dev+unsubscr...@googlegroups.com<transfer-dev%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/transfer-dev?hl=en
>



-- 
E: mark.man...@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

Reply via email to