You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Francois Gerthoffert (Jira)" <ji...@apache.org> on 2022/12/06 08:59:00 UTC
[jira] [Commented] (UNOMI-700) Reduce usage of global indices refresh
[ https://issues.apache.org/jira/browse/UNOMI-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17643732#comment-17643732 ]
Francois Gerthoffert commented on UNOMI-700:
--------------------------------------------
Since we have a ticket to add metadata to the same index to improve ES usage, this ticket need to be tackled at the same time.
> Reduce usage of global indices refresh
> --------------------------------------
>
> Key: UNOMI-700
> URL: https://issues.apache.org/jira/browse/UNOMI-700
> Project: Apache Unomi
> Issue Type: Bug
> Reporter: David Griffon
> Priority: Major
> Fix For: unomi-2.2.0, unomi-1.8.0
>
>
> In many locations we do a global refresh of indices.
> Doing this consume a lot of resource on ES side that can impact ES performances.
> The goal of this task is to limit the usage of that method. by using
> {code}
> <T extends Item> void refreshIndex(Class<T> clazz, Date dateHint);
> {code}
> instead.
> Here the usage of the {{refresh()}}
> {code}
> cxs-lists-extension-services
> org.apache.unomi.services
> UserListServiceImpl
> getListMetadatas(Query)
> persistenceService.refresh();
> unomi-itests
> org.apache.unomi.itests
> BaseIT
> refreshPersistence()
> persistenceService.refresh();
> ConditionESQueryBuilderIT
> setUp()
> persistenceService.refresh();
> org.apache.unomi.itests.graphql
> GraphQLViewIT
> test()
> persistenceService.refresh();
> unomi-services
> org.apache.unomi.services.impl
> AbstractServiceImpl
> getMetadatas(Query, Class<T>)
> persistenceService.refresh();
> org.apache.unomi.services.impl.definitions
> DefinitionsServiceImpl
> reloadTypes(boolean)
> persistenceService.refresh();
> org.apache.unomi.services.impl.goals
> GoalsServiceImpl
> getEvents(Query)
> persistenceService.refresh();
> org.apache.unomi.services.impl.profiles
> ProfileServiceImpl
> reloadPropertyTypes(boolean)
> persistenceService.refresh();
> org.apache.unomi.services.impl.rules
> RulesServiceImpl
> getRuleMetadatas(Query)
> persistenceService.refresh();
> getRuleDetails(Query)
> persistenceService.refresh();
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)