Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 15, 2019

Conversation

renatobecker-zz
Copy link

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
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