Moderator: Community Team
right, but when you start a new one, the form is there.lancehoch wrote:I merged your two threads together. You do not need to start a new one for the form.
Anything to contribute?ronc8649 wrote:lmfao......
why was this rejected ?lackattack wrote:Merged duplicate suggestions
Lack didn't move it. I did.greenoaks wrote:why was this rejected ?lackattack wrote:Merged duplicate suggestions
wouldn't it take about 3 times as longblakebowling wrote:Lack didn't move it. I did.greenoaks wrote:why was this rejected ?lackattack wrote:Merged duplicate suggestions
Also, it was moved because the MOD doesn't work this way, and the queries required to get this information would drastically increase the load time of the page.
The way they are stored in the database is (for those that have more than one medal) 1 row = bronze, 2 rows = silver, and 3 rows = gold. Therefore you would have to search only those with b/s/g and find the users that have exactly 3 matches, then those with exactly 2 matches, then with 1. This would add 4 queries to the page, bringing the load time to around 8 seconds again (the low-end of what it was before I optimized it).greenoaks wrote:wouldn't it take about 3 times as longblakebowling wrote:Lack didn't move it. I did.greenoaks wrote:why was this rejected ?lackattack wrote:Merged duplicate suggestions
Also, it was moved because the MOD doesn't work this way, and the queries required to get this information would drastically increase the load time of the page.
why would you do that ?blakebowling wrote:The way they are stored in the database is (for those that have more than one medal) 1 row = bronze, 2 rows = silver, and 3 rows = gold. Therefore you would have to search only those with b/s/g and find the users that have exactly 3 matches, then those with exactly 2 matches, then with 1. This would add 4 queries to the page, bringing the load time to around 8 seconds again (the low-end of what it was before I optimized it).greenoaks wrote: wouldn't it take about 3 times as long
It doesn't work that way. Each award is a row, a silver medal is equal to 2 awards, and a gold is equal to 3. Selecting all this information at one time would drastically increase the page load time.greenoaks wrote:why would you do that ?blakebowling wrote:The way they are stored in the database is (for those that have more than one medal) 1 row = bronze, 2 rows = silver, and 3 rows = gold. Therefore you would have to search only those with b/s/g and find the users that have exactly 3 matches, then those with exactly 2 matches, then with 1. This would add 4 queries to the page, bringing the load time to around 8 seconds again (the low-end of what it was before I optimized it).greenoaks wrote: wouldn't it take about 3 times as long
wouldn't you just do a count of row 3 for the gold
a count of row 2 for the silver
& a count of row 1 for the bronze

I'm not saying it is impossible, I'm saying that it would require database changes, which are likely to require changes to other parts of the code. We're trying to keep this as compatible as possible with future versions of the MOD.Dako wrote:Can you please send me a dump of the table for medals? Let's say 1000-5000 rows would be ok. I will try to see how complex it will be to build a decent query. Just upload it somewhere and PM me the link.
Also - what about caching the results? Do not say it is that hard.

I modified the way displaying them works, however I didn't change the database or the core functions. IF we choose to update in the future though, it shouldn't be too hard to combine the code. However the more that is changed, the more problems we could possibly have.Dako wrote:A pity. However, I think is would be wiser to adapt this module to the CC totally, then to hold back because of the future compatibility (which is broken already since you modified some parts of the code).
Well, you should know better because you can see it, so I can just speculate.