Why Nostr? What is Njump?
2024-06-19 11:12:27

dansup on Nostr: I identified the cause behind the periodic pixelfed.social downtime, and it had to do ...

I identified the cause behind the periodic pixelfed.social downtime, and it had to do with an inefficient database query that calculates the total # of local posts.

I refactored the logic to cache the value and update it periodically (twice daily) as a scheduled command.

So we're now returning that cached value instead of doing an expensive db query for this, you'll likely not notice this unless you have millions of statuses in your db

https://github.com/pixelfed/pixelfed/pull/5184

#pixelfed #pixeldev
Author Public Key
npub1ln54yvwdtp88j8cltkthe6kpaahdk0f60g56mfdx27tesdktev0st7737w