A couple of performance improvements when accessing /cms pages

31 views
Skip to first unread message

Emanuele Ziglioli

unread,
Feb 2, 2014, 5:42:16 PM2/2/14
to vosao-cms-...@googlegroups.com
Hi everyone,

on my fork I was experiencing really bad performances when going to edit a page under /cms,
I thought it could have been due to a slower ORM layer (Siena) or Jabsorb trying to serialize lots of classes, due due some get methods I had added.

Anyway, it turns out the problem was due to the way Vosao was querying for ContentPermission and FolderPermission, for each request it was querying for all GroupEntities, that in our case is fairly large.


Also I got to understand how Jabsorb performs serialization: it inspects all public fields and getters using the BeanInfo class. That way, one can customize serialization by implementing <ClassName>BeanInfo.java classes.
Not as nice as elegant as Jackson annotations, by any means, but it can be done.


Reply all
Reply to author
Forward
0 new messages