フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
anand gopalan
Data refresh very slow
2013/02/14 22:36
答え

anand gopalan

ランク: Expert

投稿: 403

参加年月日: 2012/03/02

最近の投稿

Hi All,

I updated the data in the database table but it will take longer time to show in the view.jsp.

Please let me know how to fix this issue. once I update the data in the database it should immediately reflect in the page(view.jsp).

version: Liferay6.1.0 & Oracle 11.0
anand gopalan
RE: Data refresh very slow
2013/02/15 1:40
答え

anand gopalan

ランク: Expert

投稿: 403

参加年月日: 2012/03/02

最近の投稿

Anybody know what i have to do?
Jaynil A Bagdai
RE: Data refresh very slow
2013/02/15 1:57
答え

Jaynil A Bagdai

ランク: Regular Member

投稿: 120

参加年月日: 2012/03/03

最近の投稿

how you are adding data in database from back-end or by using the application only.?
anand gopalan
RE: Data refresh very slow
2013/02/15 2:07
答え

anand gopalan

ランク: Expert

投稿: 403

参加年月日: 2012/03/02

最近の投稿

Hi,

I am adding the data in database from the back-end only.
David H Nebinger
RE: Data refresh very slow
2013/02/15 6:17
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 8166

参加年月日: 2006/09/01

最近の投稿

That is your problem. At the core Liferay's using Hibernate for data access, so results of queries can be cached. Hibernate has no idea the underlying data has changed, so effectively your cache is now stale.

If you're updating Liferay's database, then you've made a critical error. You should only be using Liferay's API to insert/update/delete data.

If you're using SB for your own entities, you need to disable the caching of the entity (there's an attribute to control this), or you can use the methods provided by SB to insert/update/delete data and keep your cache settings as they are.
Hitoshi Ozawa
RE: Data refresh very slow
2013/02/15 7:00
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7952

参加年月日: 2010/03/23

最近の投稿

If you want to directly update the database, you should shut down liferay and start liferay after all data has been updated in the database. All data should be up to date.
Siby Mathew
RE: Data refresh very slow
2013/02/15 7:39
答え

Siby Mathew

ランク: Expert

投稿: 261

参加年月日: 2011/03/04

最近の投稿

Hi Hitoshi,
We can also programmatically refresh the cache for the entity using CacheRegistryUtil, EntityCacheUtil and FinderCacheUtil.

Thanks,
Siby
David H Nebinger
RE: Data refresh very slow
2013/02/15 7:51
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 8166

参加年月日: 2006/09/01

最近の投稿

Flushing the cache alone will not help if you are updating Liferay entities that are indexed...
anand gopalan
RE: Data refresh very slow
2013/02/17 21:46
答え

anand gopalan

ランク: Expert

投稿: 403

参加年月日: 2012/03/02

最近の投稿

Hello All,

thank you for sending the response.

other scenario:

our employee update the leave details through the Leave Application(Not Liferay/Hibernate), Now I fetch the data and display in the view.jsp(Liferay/Hibernate).

In that case, How I can get the data once refresh the page(view.jsp).

Please send your guideline.

Regards
Anand