Closed bctrainers closed 7 months ago
What if you remove the limit logic all together.
If you just comment out these two lines (and restart to web service) https://github.com/ScanOC/trunk-player/blob/master/radio/views.py#L321-L322
That would skip all limits in the scan lists, as a test. There was a HUGE performance hit when I added the limits, I had fixed it a few times to make it a little bit better but it was never that great,
Thanks, will poke about with that segment along with the item above it with the query limits.
Hi folks,
I spun up a trunk-player instance in recent months, and noticed a notable decline in performance with Trunk Players pSQL database on certain queries. Notably, this particular query being the major culprit to the slow render time to the client/web site front end on the /scan/ sub-pages. Changing the age cutoff makes a minimal difference in speeds. Changing max listening age makes no difference as well - below is six or so months (i think).
A verbose explain of the query returns the following details...
Tested the database on a magnetic, SSD, and m2 drive. All of them result in the same slow render/query time. From testing, this query ends up being single CPU bound, and unfortunately, I do not see how the above query could benefit from the parallel feature on pSQL 9.x+.
Attempted the above with
Bitmap Heap Scan
's disabled and enabled - it made no difference.In a way, it would appear that tagged radio ID's that have been associated with text; rather a displayed Radio ID of 123456, we would see 'AgencyName 123456' - which may be the culprit of the slowdowns?