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

Make Real time Live widget faster: one bulk HTTP request instead of two #6575

Open
wikiloops opened this issue Nov 1, 2014 · 1 comment
Open
Labels
c: Performance For when we could improve the performance / speed of Matomo. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.

Comments

@wikiloops
Copy link

When looking at the "Visitors in Real Time" widget, every refresh issues two seperate http requests, one for the 24h/30min chart at the top of the widget and one for the content table.
Grouping those two into one request would save a lot of hits & transfer time.

When adding the "Real time visitor count" widget to my dashoard, I realized this will issue a request of its own as well, so I assume someone adding all available live widgets to a dashboard would cause quite a rage of requests just by looking at PIWIK.
Webhosts offering cheap shared hosting will not be fond of that I'm affraid.

Since the "Real time visitor count" is a quite related metric to the one displayed in the classic "Visitors in Real Time", maybe it would be a simple solution to merge the two and to refresh them by one single http request.

related issue: #6545

@mattab
Copy link
Member

mattab commented Nov 3, 2014

Merging the two requests is a good idea! we could issue a bulk API request with both requests.

@mattab mattab added Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. c: Performance For when we could improve the performance / speed of Matomo. labels Nov 3, 2014
@mattab mattab added this to the Short term milestone Nov 3, 2014
@mattab mattab changed the title group LIVE-widget refresh calls Make Real time Live widget faster: one bulk HTTP request instead of two Nov 3, 2014
@mattab mattab modified the milestones: Short term, Mid term Apr 7, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Performance For when we could improve the performance / speed of Matomo. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

No branches or pull requests

2 participants