[ovirt-devel] Caching of data from the database done properly

2016-07-04 Thread Roman Mohr
Hi Everyone, I wanted to discuss a practice which seems to be pretty common in the engine which I find very limiting, dangerous and for some things it can even be a blocker. There are several places in the engine where we are using maps as cache in singletons to avoid reloading data from the data

Re: [ovirt-devel] Caching of data from the database done properly

2016-07-04 Thread Roman Mohr
On Mon, Jul 4, 2016 at 11:58 PM, Roman Mohr wrote: > Hi Everyone, > > I wanted to discuss a practice which seems to be pretty common in the > engine which I find very limiting, dangerous and for some things it > can even be a blocker. > > There are several places in the engine where we are using m

Re: [ovirt-devel] Caching of data from the database done properly

2016-07-07 Thread Martin Mucha
Hi, some of information in mail are not exactly true. Namely MacPoolPerCluster *does not do caching*, it does not even have DB layer structures it could cache. So how it works is: pool has configuration upon which it initialize itself. After that, it looks into db for all used MACs, which curre

Re: [ovirt-devel] Caching of data from the database done properly

2016-07-09 Thread Roman Mohr
Hi Martin, Great feedback. Thanks for the clarifications. On Thu, Jul 7, 2016 at 3:25 PM, Martin Mucha wrote: > Hi, > > some of information in mail are not exactly true. Namely MacPoolPerCluster > *does not do caching*, it does not even have DB layer structures it could > cache. So how it work

Re: [ovirt-devel] Caching of data from the database done properly

2016-07-11 Thread Yevgeny Zaspitsky
On Tue, Jul 5, 2016 at 7:14 AM, Roman Mohr wrote: > On Mon, Jul 4, 2016 at 11:58 PM, Roman Mohr wrote: > > Hi Everyone, > > > > I wanted to discuss a practice which seems to be pretty common in the > > engine which I find very limiting, dangerous and for some things it > > can even be a blocker.

Re: [ovirt-devel] Caching of data from the database done properly

2016-07-11 Thread Eldad Marciano
What about JPA i think in 3.5 it raised to start using it. At the past (3.3) we found big performance issue around hist monitoring area (which fixed by a map eventually). Roy, Can you tell where the JPA stand today ? Regards, -Eldad > On 11 ביולי 2016, at 20:59, Yevgeny Zaspitsky wrote: > >

Re: [ovirt-devel] Caching of data from the database done properly

2016-07-12 Thread Roman Mohr
Hi Yevgeny, On Mon, Jul 11, 2016 at 7:59 PM, Yevgeny Zaspitsky wrote: > > > On Tue, Jul 5, 2016 at 7:14 AM, Roman Mohr wrote: >> >> On Mon, Jul 4, 2016 at 11:58 PM, Roman Mohr wrote: >> > Hi Everyone, >> > >> > I wanted to discuss a practice which seems to be pretty common in the >> > engine wh