Elektrine lite

← Feed

@64kb@icosahedron.website

Post #2672587

2025-05-20 09:45 UTC

@TimWardCam@c.im @jackscottau@aus.social I love doing that kind of optimisation (or even enabling other devs to). Never 24 hours, but certainly about 1500 queries down to about 4. The Django Debug toolbar is wonderful for helping with this.

Replies (1)

  • @64kb@icosahedron.website 2025-05-20 09:47

    @TimWardCam@c.im @jackscottau@aus.social in the rewrite I mentioned. Some of the funny bits were that previous dev didn't know if their data was a string of JSON or a python dict (given the way they'd written it, it was impossible to know). They had this "scheduler" that had lots of 1 second waits. If something got to the front but couldn't run it was put back on the queue. Hence the job taking hours, instead of a few minutes afterwards.

    Open ##2672588