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

meme

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.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[09:37 pm]
IskatuMesk -- I have never and will never own a phone
[09:15 pm]
NudeRaider -- Vrael ranting still is though
[09:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
[2026-4-12. : 11:55 pm]
Zoan -- not if u wer there
Please log in to shout.


Members Online: Roy, sedatetundra1