• BoofStroke@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    6
    ·
    8 months ago

    Yet it’s the sysadmin who gets blamed, not the developer. “How can you tune the database so this doesn’t happen?”

      • lightnegative@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        Devs who don’t understand how SQL or relational databases work write absolute abortions of queries.

        9 times out of 10 - yes it is absolutely the devs. I say that as the dev who gets tasked with analysing why these shitty queries from our low budget outsourced labour are so slow

          • lightnegative@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            8 months ago

            Err, no? At what point did I claim to be an expert?

            It doesn’t take a genius to realise that serving 100-record chunks of a billion record dataset using limit 100 offset 582760200 is never gonna perform well

            Or that converting indexed time columns to strings and doing string comparisons on them makes every query perform an entire table scan, which is obvious if you actually take the time to look at the query plan (spoiler: they don’t)

            “Why can’t the system handle more than 2 queries per second? This database sucks”

            • Tartas1995@discuss.tchncs.de
              link
              fedilink
              arrow-up
              2
              ·
              8 months ago

              I didn’t mean it so serious. I just tried to express that you seem to have experience with it and I am wondering what you have to deal with. I am sorry if it came across negatively.

    • stewie410@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      8 months ago

      I’m the sysadmin (and transitioning to DevOps) at work, but the DBs are 100% in control of our two devs (one of which being the head of IT).

      Apparently we’re going to hire a third Dev, who will moonlight as our DBA – oh, and for 30K/yr.

      I’m sure this will go well.

    • bassomitron@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      At my job, it’s almost always the dev team that is called first for bad DB performance (not always, because sometimes it is the server that’s borked).

  • RagingToad@feddit.nl
    link
    fedilink
    arrow-up
    3
    ·
    8 months ago

    Allergic to Indices? If your database is slow just add more Indices until you have one on every column of every table! :-)

    • GBU_28@lemm.ee
      link
      fedilink
      English
      arrow-up
      6
      ·
      8 months ago

      Hi I need to add some data to the database.

      No you fucking don’t

  • FreshLight@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    The guy after him:

    “Hmm since I don’t feel like looking in the documentation for every possible key of this attribute, I’ll just throw a distinct. And while I’m at it, let’s do this for every attribute that I don’t know the keys of”

  • Anna@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    This is fake the pid of the younger guy is smaller than that of grandpa

    • palordrolap@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      8 months ago

      Could be an instance of BSD where (so I hear) PIDs are assigned randomly from the unused numbers, or else the system has massive process churn going on elsewhere and the old timer is from a previous cycle of consecutive PIDs.

      Some systems still have /proc/sys/kernel/pid_max set to something around 32768, so wrapping back to 0 can happen fairly often.

      Given all the PIDs in the comic seem pretty low, it might even be as low as 1024 wherever this is.

      (Yes, I know I’m taking this way too seriously.)

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      Usually DBMSs have some small capacity to handle requests in parallel so everything slows down, but work is still getting done.

  • Bye@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    How come people use sql instead of just using text files? I just use text files for everything

    • lightnegative@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      8 months ago

      What are text files if not binary blobs on disk?

      What is SQL if not a query layer over a bunch of binary blobs on disk?