mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ACE-1918: Surf-config patch improvements. Made:
- surfConfigFolder patch to use Cron trigger - surf-config SQL query more efficient - changes to comments and formatting git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@73049 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -127,8 +127,8 @@ public abstract class AsynchronousPatch extends AbstractPatch
|
||||
|
||||
if (!appliedPatch.getWasExecuted())
|
||||
{
|
||||
// the patch was not executed
|
||||
logger.debug(I18NUtil.getMessage(MSG_NOT_EXECUTED, appliedPatch.getId(), appliedPatch.getReport()));
|
||||
// the patch was not executed. E.g. not relevant to the current schema
|
||||
logger.info(I18NUtil.getMessage(MSG_NOT_EXECUTED, appliedPatch.getId(), appliedPatch.getReport()));
|
||||
}
|
||||
else if (appliedPatch.getSucceeded())
|
||||
{
|
||||
|
@@ -395,8 +395,7 @@ public class SurfConfigFolderPatch extends AsynchronousPatch
|
||||
int minResults = SITE_BATCH_MAX_QUERY_RANGE / 2;
|
||||
while (currentId <= maxId && siteNodeIDs.size() < minResults)
|
||||
{
|
||||
List<Long> nodeIds = patchDAO.getNodesByTypeQNameId(siteTypeQNameId, currentId, currentId
|
||||
+ SITE_BATCH_MAX_QUERY_RANGE);
|
||||
List<Long> nodeIds = patchDAO.getNodesByTypeQNameId(siteTypeQNameId, currentId, currentId + SITE_BATCH_MAX_QUERY_RANGE);
|
||||
siteNodeIDs.addAll(nodeIds);
|
||||
// Increment the minimum ID
|
||||
currentId += SITE_BATCH_MAX_QUERY_RANGE;
|
||||
@@ -446,8 +445,7 @@ public class SurfConfigFolderPatch extends AsynchronousPatch
|
||||
while (currentId <= maxId && folderNodes.size() < minResults)
|
||||
{
|
||||
|
||||
List<NodeRef> nodeIds = patchDAO.getChildrenOfTheSharedSurfConfigFolder(currentId, currentId
|
||||
+ SHARED_SURF_CONFIG_BATCH_MAX_QUERY_RANGE);
|
||||
List<NodeRef> nodeIds = patchDAO.getChildrenOfTheSharedSurfConfigFolder(currentId, currentId + SHARED_SURF_CONFIG_BATCH_MAX_QUERY_RANGE);
|
||||
folderNodes.addAll(nodeIds);
|
||||
// Increment the minimum ID
|
||||
currentId += SHARED_SURF_CONFIG_BATCH_MAX_QUERY_RANGE;
|
||||
|
Reference in New Issue
Block a user