New account registration is temporarily disabled.

SORT BY TOTAL DOWNLOADS TIMING OUT?

Posts

Pages: 1
Marrend
Guardian of the Description Thread
21806
I noticed a discussion on Discord concerning this. Be that as it may, attempting to sort games by total downloads, and no other filter, seems to generate a "system is down" page after maybe a minute of load-time.

There's currently a few workarounds for this. One is to apply at least one other filter to the search. Such as narrowing by engine, or maybe a minimum rating of 0.5, or whatever. Checking the "Download Available" checkbox seems to make the first page load (I have not tried other pages), though it still seems to take about a minute of load-time.
this is definitely not something I've thought about since 2011. I will have to actually dig into this to figure it out.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
it's happening again (or possibly has been broken for three years without being fixed)

It's possible the numbers are just too big, and the total number of downloads overflows beyond maxint at some point during the sort algorithm. But if you sort by profile views, it works fine. And every game has way more views than downloads. So if that's the problem, then there must already be a fix in place which was added for views but not for downloads. If so, that should hopefully make it easier to fix?

Some other people on discord were suggesting that the reason sorting by downloads breaks but sorting by views doesn't is because when you sort by downloads it has to loop through all of each game's downloads and add them together, adding an extra exponent to the number of operations that the sort takes to complete. If this is the case then the solution is probably going to involve changing how the sort algorithm works. Which, depending on the site's code, might mean saving something in a variable instead of querying a function over and over during the sort code, or might mean replacing the sort algorithm with a different standardized one, or might mean doing something else to improve the sort's efficiency.
this is definitely not something I've thought about since 2019.
Dyluck
For thousands of years, I laid dormant. Who has disturbed my slumber?
5184
You will have to actually dig into this to figure it out.
Pages: 1