>From me «Draculaboyman»* El may 3, 2011 2:02 a.m., "Jerome Thoma" <[email protected]> escribió: > Hi everyone, > I have a question about EntityProxy vs. ValueProxy and efficiency issues. I > need to load a list of SubProxy objects using RF for display in a listbox > inside an editor for an encompassing SuperProxy type. No SubProxy instance
> is modified by the editor, but because RF does not support inheritance, I > must use EntityProxy as SubProxy's super-type. This means unfortunately that > on loading the list of SubProxy objects (using one efficient Hibernate > call), RF launches one find operation for each objects (thus creating X more > Hibernate calls) which is very inefficient. Is this desired behaviour and > how do I optimise my loading code. Currently it takes several seconds to > load a list of ca. 100 SubProxy objects. I have encountered this problem > before and solved it by using ValueProxy objects which are not > version-checked by the RF engine. Could someone please explain me why the RF > engine does a separate version check for each EntityProxy that I just > retrieved from the DB? > > Thanks for sharing your knowledge > Jerome > > -- > You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to [email protected]. > For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
