Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Diogo Nesbitt
40
Views
3
Comments
Platform Slow Queries
Question
Installation
Hello,
I have one community edition
6.0.1.25
with AluguerDeCampos.Com platform, witch have about 1000 users/day and about 5000 page hits/day and when I got SQL weekly Report my top entries are:
ADC
OS: OutSystems.HubEdition.RuntimePlatform.DBRuntimePlatform.IsUserActive
380
2 308
877
OS: OutSystems.HubEdition.Scheduler.DBScheduler.GetPendingActivities
415
1 893
786
OS: OutSystems.HubEdition.Scheduler.DBScheduler.DequeueEmails
536
1 406
754
OS: OutSystems.HubEdition.RuntimePlatform.DBRuntimePlatform.DequeueEvent
405
1 076
436
ADC_BO
OS: OutSystems.HubEdition.RuntimePlatform.DBRuntimePlatform.IsUserActive
84
2 750
231
OS: OutSystems.HubEdition.RuntimePlatform.SessionConfiguration+#qN5.#jjb
94
1 616
152
OS: OutSystems.HubEdition.Scheduler.DBScheduler.GetCyclicJobs
99
1 127
112
No BPT is used.
Any Ideia?
Thanks in advance.
Ricardo Silva
Hello Diogo,
Some of these particular queries are performed a lot (and I mean a lot) of times. This is likely not a problem. It's just a matter of small queries being performed a lot.
Why are you looking into this? Are you having performance issues associated with these queries ?
Ricardo Silva
Diogo Nesbitt
Thanks Ricardo,
I just notice now that the last columns didnt paste.
Attach image.
Are this times normal?!
2013-09-18_2251.png
Ricardo Silva
No, those times aren't normal. And the fact that they're appearing there are proof of it.
Allow me to elaborate:
GetPendingActivities runs (roughly) once every 0.5 seconds*. Over the course of one week that'll be 1209600 times. Of those times, only 415 (0.03% of executions) were over 200ms. The vast majority of the executions were perfectly acceptable, likely immediate.
A similar analysis could be made for most the other queries.
What this data shows is that sometimes these queries get slow... really slow. It would be important to find out where in time these slowdowns occurred, to be able to correlate with other events.
They could be slow during database maintenance tasks, or during unusual peak hours. You can check these timings by going through the General Log (filtering by SLOWSQL).
In conclusion: I wouldn't fret about this.
* this is off the top of my head, I will double check this information. But it gets ran A LOT.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...