I don’t use cfdump that much, and prefer to use the debugger to look at the variables.
In this case the variable holds nothing more than the string representation of the array of objects.
So I decided to cfdump the object, but the question is that even though on the one-to-many I have lazy loading is true. It still dumps the records from the relationship.
So my question is this, is there a way to determine if lazy loading is working? And if it is and the cfdump pulls the records in, should the cfdump be a bit smarter here?
--
You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-or...@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
--
I believe cfdump pulls in everything it can, essentially ignoring lazy
loading.
You could always set this.ormSettings.logSQL=true and look at the
queries that Hibernate is executing for your request.
-Tony
On Dec 14, 3:35 am, "Andrew Scott" <andr...@andyscott.id.au> wrote:
> I don't use cfdump that much, and prefer to use the debugger to look at the
> variables.
>
> In this case the variable holds nothing more than the string representation
> of the array of objects.
>
> So I decided to cfdump the object, but the question is that even though on
> the one-to-many I have lazy loading is true. It still dumps the records from
> the relationship.
>
> So my question is this, is there a way to determine if lazy loading is
> working? And if it is and the cfdump pulls the records in, should the cfdump
> be a bit smarter here?
--
You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-or...@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
From: cf-or...@googlegroups.com
[mailto:cf-or...@googlegroups.com] On Behalf Of Brian Kotek
Sent: Wednesday, 16 December 2009 1:43 AM
To: cf-or...@googlegroups.com
Subject: Re: Is Lazy Loading working?
Andrew, why do you care? You've already been given several options to determine how the lazy loading is working. Looking at the generated SQL is the common way this is done, and has the bonus of making you keep an eye on what is happening and looking for issues in your ORM configuration that are triggering inefficient or unnecessary SQL. What EXACTLY are you expecting? Dump elements of type HibernateProxy? An extra cfdump attribute for "includeLazy="true|false"? Empty CF arrays/structs?
Brian,
There are still a few things I need to work on, the point is that this information is held in memory and I am working of public methods to the object. But as a proof of concept Adobe can check to see if the property holds a value or not, and also check to see if it is marked lazy =true and ignore the call to get the data.
My point still stands that if I can do it with limited methods available to me, what could I do if I had the underlying private methods and or source to do a better job?
So my point still stands, why can’t adobe do something similar with the object if it is held in memory?
From: cf-or...@googlegroups.com
[mailto:cf-or...@googlegroups.com] On Behalf Of Brian Kotek
Sent: Wednesday, 16 December 2009 2:02 AM
To: cf-or...@googlegroups.com
Subject: Re: Is Lazy Loading working?
Congratulations, genius. You wrote a tag that can read property metadata. Have fun with that in a situation like this: