Skip to content

[IMPROVE] Add new index to speed up the Livechat navigation history query's #14812

Merged
sampaiodiego merged 1 commit intodevelopfrom
livechat-navigation-history-index
Jun 15, 2019
Merged

[IMPROVE] Add new index to speed up the Livechat navigation history query's #14812
sampaiodiego merged 1 commit intodevelopfrom
livechat-navigation-history-index

Conversation

@renatobecker-zz
Copy link
Copy Markdown

CLOSES #14809.

When a new Livechat session starts we update the records(documents) related to the visitor navigation history because we track/store its navigation even when the visitor is not yet registered.
Due to that, we need to update those data, assigning the new rid related to the new livechat room, but we detected that there is a high latency happening during this process because there is not an index for the field -> navigation.token.

Copy link
Copy Markdown
Contributor

@geekgonecrazy geekgonecrazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! If accessing frequently it definitely could get slower.

@sampaiodiego sampaiodiego merged commit 0dec989 into develop Jun 15, 2019
@sampaiodiego sampaiodiego deleted the livechat-navigation-history-index branch June 15, 2019 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initiating live chat takes a long time with big database

5 participants