• 0 Posts
  • 14 Comments
Joined 1 year ago
cake
Cake day: June 2nd, 2023

help-circle




  • Looking at the query I think it only returns a single row per post. So not really duplicate data. It all looks very straight forward and you’d think all the “_id” and “id” columns are indexed.

    I asked for an EXPLAIN ANALYZE plan to see what really happens and where the most time is spent.

    If it’s indexes we’ll see quickly. It might strangely be in the WHERE clause. Not sure what Hot_rank()'s implementation is. But we’ll find that out too if we can get the plan timings. Without looking at the numbers it’s all just guessing.

    And I can’t run them myself since I don’t have access to a busy instance with their amount of production data. It’s the thing about databases - what runs fast in dev, doesn’t always translate to real workloads.






  • veroxii@lemmy.mltoLemmy@lemmy.mlWhy did you join lemmy?
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    1 year ago

    Might as well ask here since it’s relevant, but I’ve been thinking of spinning up a beefy lemmy instance and “mirroring” some of my favourite reddit subs across into custom mirror communities. A kind of archive but which you can browse from any lemmy UI. For example, there are some news and sports threads I enjoy following. Would this be a good or bad idea? Would it needlessly flood the other instances?