dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11937
Re: [Bug 776975] [NEW] A new oganisation unit not showed after created
Hi,
I understood the important of read-write cache in performance. That's just a
small test for removing that declared in hibernate mapping file. If using
cache then refreshing the page list and nothing happened even the object
created.
Btw, I also tried with cacheManager.clearCache() but not sure and understand
how is it working...
2011/5/4 Lars Helge Øverland <larshelge@xxxxxxxxx>
> Hi its very crucial for performance that we cache orgunits so this is not
> an
> acceptable solution. The read-write cache should be invalidated when
> someones write a new object. What happens if you refresh the page after
> returning to the list?
>
> On Wed, May 4, 2011 at 11:28 AM, Hieu Duy Dang
> <hieu.hispvietnam@xxxxxxxxx>wrote:
>
> > Public bug reported:
> >
> > When a organization unit created then back to the main page of orgunit
> list
> > but that new one isn't showed up in the list. Checking in database the
> > record of this unit has been stored.
> > I think this issue which is concerned at cache is being used in hibernate
> > mapping file of organization unit. In fact, I tried removing this <cache
> > usage="read-write" /> in
> >
> > <set name="children" inverse="true"
> cascade="save-update,delete-orphan">
> > <cache usage="read-write" />
> > <key column="parentid" />
> > <one-to-many class="xxx.OrganisationUnit" />
> > </set>
> >
> > then rebuilding and running/working properly.
> >
> > ** Affects: dhis2
> > Importance: Undecided
> > Status: New
> >
> > --
> > You received this bug notification because you are a member of DHIS 2
> > India Developers, which is subscribed to DHIS.
> > https://bugs.launchpad.net/bugs/776975
> >
> > Title:
> > A new oganisation unit not showed after created
> >
> > Status in DHIS 2 - District Health Information Software:
> > New
> >
> > Bug description:
> > When a organization unit created then back to the main page of orgunit
> > list but that new one isn't showed up in the list. Checking in database
> the
> > record of this unit has been stored.
> > I think this issue which is concerned at cache is being used in
> hibernate
> > mapping file of organization unit. In fact, I tried removing this <cache
> > usage="read-write" /> in
> >
> > <set name="children" inverse="true"
> > cascade="save-update,delete-orphan">
> > <cache usage="read-write" />
> > <key column="parentid" />
> > <one-to-many class="xxx.OrganisationUnit" />
> > </set>
> >
> > then rebuilding and running/working properly.
> >
>
> --
> You received this bug notification because you are a member of DHIS 2
> India Developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/776975
>
> Title:
> A new oganisation unit not showed after created
>
> Status in DHIS 2 - District Health Information Software:
> New
>
> Bug description:
> When a organization unit created then back to the main page of orgunit
> list but that new one isn't showed up in the list. Checking in database the
> record of this unit has been stored.
> I think this issue which is concerned at cache is being used in hibernate
> mapping file of organization unit. In fact, I tried removing this <cache
> usage="read-write" /> in
>
> <set name="children" inverse="true"
> cascade="save-update,delete-orphan">
> <cache usage="read-write" />
> <key column="parentid" />
> <one-to-many class="xxx.OrganisationUnit" />
> </set>
>
> then rebuilding and running/working properly.
>
--
Good health !
--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/776975
Title:
A new oganisation unit not showed after created
Status in DHIS 2 - District Health Information Software:
New
Bug description:
When a organization unit created then back to the main page of orgunit list but that new one isn't showed up in the list. Checking in database the record of this unit has been stored.
I think this issue which is concerned at cache is being used in hibernate mapping file of organization unit. In fact, I tried removing this <cache usage="read-write" /> in
<set name="children" inverse="true" cascade="save-update,delete-orphan">
<cache usage="read-write" />
<key column="parentid" />
<one-to-many class="xxx.OrganisationUnit" />
</set>
then rebuilding and running/working properly.
References