[ https://issues.apache.org/jira/browse/UNOMI-817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839040#comment-17839040 ]
Jonathan Sinovassin-Naïk commented on UNOMI-817: ------------------------------------------------ PR: https://github.com/apache/unomi/pull/659 > past event conditions can generate mapping explosions > ----------------------------------------------------- > > Key: UNOMI-817 > URL: https://issues.apache.org/jira/browse/UNOMI-817 > Project: Apache Unomi > Issue Type: Improvement > Reporter: Romain Gauthier > Assignee: Jonathan Sinovassin-Naïk > Priority: Major > Fix For: unomi-2.5.0 > > Time Spent: 10m > Remaining Estimate: 0h > > For past event conditions, we add a property \{{eventTriggered+md5}} to the > profile and session indexes. > But these properties are never cleaned even if the th condition doesn't exist > anymore. > This can result in a large number of properties getting added to the index, > and could lead to a mapping explosion. > Tech notes: > * These properties need to be moved to a nested or flattened property > (ensure it performs well and that each eventTrigger doesn't NOT create a new > mapping, we need only one mappping for all eventTriggered) > * pastEventQueryBuilder, pastEventConditionEvaluator, setEventOccurenceCount > action need to be updated > * If there is a way to prevent these properties to be copied to the session, > that would be great > * Requires a migration script, including a full reindexation of the profiles > to clean previous mappings -- This message was sent by Atlassian Jira (v8.20.10#820010)