This content has been marked as final.
Show 2 replies
-
1. Re: Perfomance tuning
mail.micke Mar 28, 2007 10:40 AM (in response to furic)Maybe something like this:
class MyBean{ private String filterField1; private String filterField2; private List tableDataCache=null; public List getTableData(){ // Perhaps a check to see if the filters have changed, and update if they have if( tableDataCache == null ){ tableDataCache = daoObj.getData(filterField1,filterField2...); } return tableDataCache ; } }
-
2. Re: Perfomance tuning
furic Mar 28, 2007 11:06 AM (in response to furic)Thanks for replay, but what if there are no filters at all?
Is there any standard solution for this issue ?
i think i'm not the first developer facing this problem (it's very common case), don't want to discover the wheel here...