Forums

Home » Liferay Portal » English » x. Miscellaneous

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Swanand Barve
Reducing Service calls in Liferay 5.1.2 CE
July 5, 2010 3:04 AM
Answer

Swanand Barve

Rank: New Member

Posts: 2

Join Date: April 8, 2010

Recent Posts

Hi All
I am part of a team that's developing a portal application using Liferay 5.1.2 CE. I am observing that in order to render average 4-5 portlets, on an average, around 1000 Liferay services are made. Following services are most called
RoleLocalService
GroupLocalService
ResourceLocalService
ThemeLocalService
LayoutTemplateLocalService
UserLocalService

Is there a way to reduce these service calls ? Especially ones related with Permissions(Role /group/user local service for example)


thanks in advance
swanand
Juan Fernández
RE: Reducing Service calls in Liferay 5.1.2 CE
July 5, 2010 7:42 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1262

Join Date: October 2, 2008

Recent Posts

Hi Swanand:

those services are used in every Liferay portlet because it's the way we handle each portlet behaviour.

The point is: why do you want to remove those services? If you remove those services you will loose functionality. Are you developing custom portlets or using Liferay's?

Regards
Juan Fernández
Liferay Core Engineer
Swanand Barve
RE: Reducing Service calls in Liferay 5.1.2 CE
July 6, 2010 2:54 AM
Answer

Swanand Barve

Rank: New Member

Posts: 2

Join Date: April 8, 2010

Recent Posts

Thanks for the response Juan,
We're using custom portlets with IceFaces 182 Enterprise Edition. We're using some out of the box Liferay portlets like Login.
I am observing that for each page, literally 1000+ calls are made on these services, which in turn is making database calls, thereby having a negative impact on response time and overall performance.
1. Is it possible to tune /setup liferay in such a way, that these calls happen once per page( not per portlet)?

2.Furthermore, we've got pages that are public(no login required) Vs private(login required)
Would it be possible to suppress some of these calls for public pages and cache the permissions for a logged in users(the retrieval will happen only once, that point onwards permissions in cache would be checked against permission settings for portlets)

3. Lastly, I see that a new permission algorithm(5) has been added in 5.1. Will that help improve performance ? Is that part of 5.1.2 Community edition as well ?

Thanks in advance
Swanand
Manish Kumar Gupta
RE: Reducing Service calls in Liferay 5.1.2 CE
July 6, 2010 5:04 AM
Answer

Manish Kumar Gupta

LIFERAY STAFF

Rank: Liferay Master

Posts: 535

Join Date: May 15, 2008

Recent Posts

Hi Swanand,

Algorithm 5 is default algorithm in Liferay 5.1.2.

Manish.