Re: Object relationship freshness

2016-04-20 Thread Lon Varscsak
The problem with prefetching is that it means that every application needs to assume that the data is dirty and know of every relationship. Which is problematic because 1) relationships can change over time and 2) I don’t necessarily wan’t to prefetch every relationship. I feel like that if I’m u

Re: ROP - Define order of inserts on large commit to multiple tables with relationships?

2016-04-20 Thread Adam Boyle
Since Andrus just mentioned docs in another thread, here is how I added the custom module loading to my ROP setup to add the WeightedAshwoodEntitySorter support in web.xml: http://cayenne.apache.org/docs/4.0/tutorial-rop/ch03.html#running-rop-server cayenne-project org.apach

Re: Object relationship freshness

2016-04-20 Thread Andrus Adamchik
Which reminds me that, I need to replace doc examples with SelectQuery to use ObjectSelect :) Andrus > On Apr 20, 2016, at 10:42 AM, Adam Boyle wrote: > > I can confirm... prefetching is the way to go. > https://cayenne.apache.org/docs/4.0/cayenne-guide/performance-tuning.html#prefetching >

Re: Object relationship freshness

2016-04-20 Thread Adam Boyle
I can confirm... prefetching is the way to go. https://cayenne.apache.org/docs/4.0/cayenne-guide/performance-tuning.html#prefetching I was having a similar issue where my most recently committed records were not showing up in subsequent queries. Prefetching is what fixed it for me. You can appl