Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
SchwertImStein ( SchwertImStein@lemmy.dbzer0.com )  to Programmer Humor@programming.devEnglish · 2 years ago

muskrat's data eng expert's hard drive overheats while processing 60k rows

lemmy.dbzer0.com

message-square
87
link
fedilink
560

muskrat's data eng expert's hard drive overheats while processing 60k rows

lemmy.dbzer0.com

SchwertImStein ( SchwertImStein@lemmy.dbzer0.com )  to Programmer Humor@programming.devEnglish · 2 years ago
message-square
87
link
fedilink
  • Tiefling IRL ( tiefling@lemmy.blahaj.zone ) 
    link
    fedilink
    arrow-up
    84
    ·
    2 years ago

    60k isn’t that much, I frequently run scripts against multiple hundreds of thousands at work. Wtf is he doing? Did he duplicate the government database onto his 2015 MacBook Air?

    • easily3667 ( easily3667@lemmus.org ) 
      link
      fedilink
      English
      arrow-up
      100
      ·
      edit-2
      1 year ago

      deleted by creator

      • morrowind ( morrowind@lemmy.ml ) 
        cake
        link
        fedilink
        arrow-up
        40
        ·
        2 years ago

        Sqlite can easily handle millions of rows. Don’t sell it short

        • The_Decryptor ( The_Decryptor@aussie.zone ) 
          link
          fedilink
          English
          arrow-up
          7
          ·
          2 years ago

          How about a 6.4TB sqlite database?

          https://boyter.org/posts/searchcode-bigger-sqlite-than-you/

          • morrowind ( morrowind@lemmy.ml ) 
            cake
            link
            fedilink
            arrow-up
            6
            ·
            2 years ago

            Should be enough to hold 60k rows

        • Korhaka ( Korhaka@sopuli.xyz ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 years ago

          I have an sqlite db that is a few GB in size, game saves using the format. Sadly almost all blob data, would love to play with it if it was a bit more readable

        • easily3667 ( easily3667@lemmus.org ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          1 year ago

          deleted by creator

      • Hotzilla ( Hotzilla@sopuli.xyz ) 
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        60k is single json file

    • 4am ( 4am@lemm.ee ) 
      link
      fedilink
      arrow-up
      62
      ·
      2 years ago

      A TI-86 can query 60k rows without breaking a sweat.

      If his hard drive overheated from that, he is doing something very wrong, very unhygienic, or both.

      • CosmicTurtle0 [he/him] ( CosmicTurtle0@lemmy.dbzer0.com ) 
        link
        fedilink
        English
        arrow-up
        15
        ·
        2 years ago

        He probably mining crypto on top of running his SQL queries.

      • Lumiluz ( Lumiluz@slrpnk.net ) 
        link
        fedilink
        English
        arrow-up
        14
        ·
        2 years ago

        What? You don’t run your hard drives in the oven while baking brownies? It makes them zesty.

      • I Cast Fist ( ICastFist@programming.dev ) 
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        There must be more join statements than column names

    • IsoKiero ( IsoKiero@sopuli.xyz ) 
      link
      fedilink
      English
      arrow-up
      11
      ·
      2 years ago

      Don’t know what Elmos minions are doing, but I’ve written code at least equally unefficient. It was quite a few years ago (the code was in written in perl) and I at least want to think that I’m better now (but I’m not paid to code anymore). The task was to pull in data from a CSV (or something like that, as I mentioned, it’s been a while) and it needed conversion to XML (or something similar).

      The idea behind my code was that you could just configure which fields you want from arbitary source data and on where to place them on the whatever supported destination format. I still think that the basic idea behind that project is pretty neat, just throw in whatever you happen to have and have something completely else out of the other end. And it worked as it should. It was just stupidly hungry for memory. 20k entries would eat up several gigabytes of memory from a workstation (and back then it was premium to have even 16G around) and it was also freaking slow to run (like 0.2 - 0.5 seconds per entry).

      But even then I didn’t need to tweet that my hard drive is overheating. I well understood that my code is just bad and I even improved it a bit here and there, but it was still so very slow and used ridiculous amounts of RAM. The project was pretty neat and when you had few hundred items to process at a time it was even pretty good, there was companies who relied on that code and paid for support. It just totally broke down with even a slightly bigger datasets.

      But, as I already mentioned, my hard drive didn’t overheat on that load.

    • socsa ( socsa@piefed.social ) 
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 years ago

      I’ve run searches over 60k lines of raw JSON on a 2015 MacBook air without any problems.

    • irelephant [he/him]🍭 ( Irelephant@lemm.ee ) 
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      No, its an external drive, appearently.

    • Lucy :3 ( 30p87@feddit.org ) 
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      My fucking events table of my synapse DB in postgres is nearly ten times as large, and I ported that from sqlite no long ago, in a matter of minutes. All of the data is on a 2*3 cluster of old 256GB SSDs, equaling about 1.5TB with Raid 0. That’s neither really fast, nor cool. But stable.

    • Barbecue Cowboy ( BarbecueCowboy@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      deleted by creator

    • vga ( vga@sopuli.xyz ) Banned
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I mean if we were to sort of steelman this thing, there sure can be database relations and queries that hit only 60k rows but are still hteavy as fuck.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 468 users / day
  • 1.49K users / week
  • 3.33K users / month
  • 7.28K users / 6 months
  • 463 local subscribers
  • 33.6K subscribers
  • 1.53K Posts
  • 25.2K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code