Uploaded image for project: 'Apache Unomi'
  1. Apache Unomi
  2. UNOMI-817

past event conditions can generate mapping explosions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • unomi-2.5.0
    • None
    • None

    Description

      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 

      Attachments

        Activity

          People

            jsinovassinnaik Jonathan Sinovassin-Naïk
            rgauthier Romain Gauthier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 40m
                2h 40m