Staredit Network > Forums > Staredit Network > Topic: Updates 2017-05-08
Updates 2017-05-08
May 9 2017, 12:56 am
By: Moose  

May 9 2017, 12:56 am Moose Post #1

Armor: 100%

The shoutbox code and database table were updated to increase performance. Regarding general slowness, there is still a lot of unoptimized code killing performance. However, the shoutbox is loaded on every page and makes frequent queries, so it made for some good optimization.

Technical details:
- In the shoutbox table, changed columns of type int that only ever used two values to bit type and updated queries accordingly.
- Created a more effective concatenated index used by shoutbox queries.
- Changed queries on the shoutbox table that ordered by time (which wasn't indexed for some reason) to use the primary key instead, since the id and time are monotonically increasing.

EDIT: To give credit where it's due, shout out to Ashamed for some advice and motivation.

EDIT 2: For a sense of scale, on a four-hour uptime, shoutbox refresh requests made up just over 27.99% of requests to the site according to the access logs.

Post has been edited 3 time(s), last time on May 10 2017, 2:36 am by Mini Moose 2707.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:25 pm]
ihjel -- "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
[06:59 pm]
Symmetry -- I just pasted what google ai told me to try to form a feedback loop
[01:24 pm]
NudeRaider -- UndeadStar
UndeadStar shouted: https://staredit.net/topic/18961/ <= wow, if there wasn't a capital letter on almost every word in the title, and a link in the signature, I may not have guesses it's an AI bot. I don't know much about map editing, but the content may even be relevant enough to be kept.
Yeah, I've noticed it, but it raised a couple of relevant questions and kept the ad to the signature so if someone were to engage with the topic it could be a net positive which is why I kept it. We're not necessarily anti-bot, just anti-spam. Thanks to Symmetry who realized my hope. :)
[08:09 am]
Zycorax -- Greed
[2026-11-11. : 3:25 am]
Symmetry -- why do the oligarchs want our mapping strategies???
[2026-11-11. : 3:24 am]
Symmetry -- the question is why though
[2026-11-11. : 1:10 am]
Butch -- made me feel really sad and stupid and fat
[2026-11-11. : 1:10 am]
Butch -- I got duped by one and replied and then realized after
[2026-11-10. : 11:26 pm]
Sie_Sayoka -- the turings have tested
[2026-11-10. : 3:07 pm]
UndeadStar -- https://staredit.net/topic/18961/ <= wow, if there wasn't a capital letter on almost every word in the title, and a link in the signature, I may not have guesses it's an AI bot. I don't know much about map editing, but the content may even be relevant enough to be kept.
Please log in to shout.


Members Online: SpencerWalker330, LeonidasKarydis118, FabianEder975