hi all.i have a jsp which lists(with datagrid) broken down workitems.in that list there is a column which is to show if an attachment of the workitem is locked or not.if it is locked there exists docbaselockicon in the column.
i determine locked attachment in this way:
IDfCollection coll = getQuery("SELECT r_lock_owner FROM dbo.hlk_document_sp where r_lock_owner!='' and workflow_id='"
+ oWorkitem.getWorkflowId().toString() + "'");
if (coll.next()) {
isLocked[i] = true;
} else {
isLocked[i] = false;
}
this work very slowly.what can i do to make performance better.(about the dql ).is there a caching system for this?
Best Regards.