Re: paged query slow when fetching big lists

2007-06-25 Thread Marcin Skladaniec
Hi I have done some more profiling and testing. executing queries on table with >10 records, directly on server (not on client) gave results as listed below: 1) SelectQuery(Student.class) with page size 10 takes 30-50 seconds. 2) SQLTemplate(Student.class, "SELECT #result('id' 'int') fro

1.2.1: Loosing references to 1 to 1 reference objects

2007-06-25 Thread Florian . Eska
Hi, sometimes we are loosing references to one to one reference in Cayennen objects. The database allways have these objects. Datamodell Product has n ProductStateallways ok Product basic data type allways ok Product has a Client sometime not set in Product o

Re: paged query slow when fetching big lists

2007-06-25 Thread Marcin Skladaniec
Hi Andrus I had not much time to check, but with the fix the 100k records load in 30 instead of 50 seconds. It is some improvement, but not enough. I'll do some more profiling tomorrow and let you know. By the way, we are using netbeans for profiling, the benefit : it is free. I will eval

Re: Relationships across databases

2007-06-25 Thread Øyvind Harboe
The only thing I have to add at this point is that with frameworks such as Cayenne, there is less benefit in trying to put all data in the same database, so perhaps in the future we're going to see more rather than less applications sitting on top of heterogeneous databases? Converting databases

Re: Relationships across databases

2007-06-25 Thread Andrus Adamchik
On Jun 21, 2007, at 6:15 PM, Mike Kienenberger wrote: but there's no reason that Cayenne could not attempt to solve it down the road. +1. I think we can devise a sensible algorithm along the following lines: * Split the qualifier into DB-specific parts * Fetch the root entity with its ow

Re: Relationships across databases

2007-06-25 Thread Andrus Adamchik
I think the limitation has been mostly explained by others in this thread. So let me try to summarize: [works] Saving of related objects. [works] Resolving a relationship. [doesn't work] Doing a query on relationship source qualified on some criteria applied to the target object

Re: Automatically managing last_modif_date and modified_by columns

2007-06-25 Thread Andrus Adamchik
Yeah, I'd say using 'validateFor...' is the right way to do it in 2.0: http://cayenne.apache.org/doc20/dataobject-validation.html Andrus On Jun 24, 2007, at 11:19 PM, Lachlan Deck wrote: On 22/06/2007, at 7:41 PM, Thomas Gilbert wrote: Using Cayenne (2.0) I'm trying to put in place the foll