mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Performance tweak
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -309,7 +309,7 @@ public class DictionaryDAOImpl implements DictionaryDAO
|
|||||||
if (models == null)
|
if (models == null)
|
||||||
{
|
{
|
||||||
models = new ArrayList<CompiledModel>();
|
models = new ArrayList<CompiledModel>();
|
||||||
getUriToModels().put(uri, models);
|
getUriToModels(tenantDomain).put(uri, models);
|
||||||
}
|
}
|
||||||
if (!models.contains(model))
|
if (!models.contains(model))
|
||||||
{
|
{
|
||||||
@@ -384,7 +384,7 @@ public class DictionaryDAOImpl implements DictionaryDAO
|
|||||||
return models;
|
return models;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<CompiledModel> models = getUriToModels().get(uri);
|
List<CompiledModel> models = getUriToModels("").get(uri);
|
||||||
if (models == null)
|
if (models == null)
|
||||||
{
|
{
|
||||||
models = Collections.emptyList();
|
models = Collections.emptyList();
|
||||||
@@ -851,16 +851,6 @@ public class DictionaryDAOImpl implements DictionaryDAO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get uriToModels from the cache (in the context of the current user's tenant domain)
|
|
||||||
*
|
|
||||||
* @param tenantDomain
|
|
||||||
*/
|
|
||||||
private Map<String, List<CompiledModel>> getUriToModels()
|
|
||||||
{
|
|
||||||
return getUriToModels(tenantService.getCurrentUserDomain());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get uriToModels from the cache (in the context of the given tenant domain)
|
* Get uriToModels from the cache (in the context of the given tenant domain)
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user