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

We live in a society.

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.
[03:08 pm]
Sylph-Of-Space -- woah! nice! thank you!
[04:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
[04:04 am]
O)FaRTy1billion[MM] -- instead change "Microtile Overlay" to "Impassable"
[04:04 am]
O)FaRTy1billion[MM] -- er, wait, idk why i was looking for height
[04:03 am]
O)FaRTy1billion[MM] -- below the minimap should be a thing that says "Overlay Settings" with a little + button in the corner, press the + to expand it, uncheck Use Defaults, then change "Tile Overlay" to "Height"
[03:57 am]
Sylph-Of-Space -- Unless I'm dum (possible)
[03:57 am]
Sylph-Of-Space -- It would be so so so nice if SCMDraft had some kind of dedicated "walkability" view for the tilesets.
[03:53 am]
Sylph-Of-Space -- :'( dont cry for me cat-gentina
[09:18 pm]
Ultraviolet -- 🔪🐈
[2024-5-19. : 12:34 pm]
NudeRaider -- curiosity kills the cat!
Please log in to shout.


Members Online: Sylph-Of-Space, Roy, Excalibur