Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Good Morning

Good Morning

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
56 Posts 31 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M [email protected]

    I made several lengthy presentations about many features, mainly those that are/were missing in MySQL.

    In short, MySQL (has been) shit since its inception, with insane defaults and lacking SQL support.

    After Oracle bought it, it got better, but it's catching up with stuff that Postgres has had for 20+ years (in some cases).

    Also, fuck Oracle, it's a shit company.

    Edit: if I had to pick the best features I can't live without, it would be 'returning', copy mode and arrays

    C This user is from outside of this forum
    C This user is from outside of this forum
    [email protected]
    wrote last edited by
    #27

    As a complete newb to Postgres, I LOVE arrays.

    Postgres feels like all of the benefits of a database and a document store.

    M 1 Reply Last reply
    3
    • M [email protected]

      This is literally me at every possible discussion regarding any other RDBMS.

      My coworkers joked that I got paid for promoting Postgres.

      Then we switched from Percona to Patroni and everyone agreed that... fuck yes, PostgreSQL is the best.

      L This user is from outside of this forum
      L This user is from outside of this forum
      [email protected]
      wrote last edited by
      #28

      I used to agree, but recently tried out Clickhouse for high ingestion rate time series data in the financial sector and I’m super impressed by it. Postgres was struggling and we migrated.

      This isn’t to say that it’s better overall by any means, but simply that I did actually find a better tool at a certain limit.

      M Q 2 Replies Last reply
      9
      • P [email protected]

        first thing i'd ask it is how to pronounce SQL

        V This user is from outside of this forum
        V This user is from outside of this forum
        [email protected]
        wrote last edited by
        #29

        15 years ago I called it S-Q-L and then I was told that it's wrong and it's "Sequel", and they kept calling it Sequel in college so for the past 10 years I've called it Sequel, My-Sequel, Sequel-lite, Postgres, transact-sequel, etc. Now y'all are telling me it's not Sequel

        1 Reply Last reply
        1
        • cm0002@lemmy.worldC [email protected]

          forget PostgreSQL’s existence until data corruption.

          Oh, so about 2 hours then LMAO

          P This user is from outside of this forum
          P This user is from outside of this forum
          [email protected]
          wrote last edited by
          #30

          ...ok, I'm morbidly curious. How did you manage to do that?

          1 Reply Last reply
          10
          • lime@feddit.nuL [email protected]

            pg can actually query into json fields!

            T This user is from outside of this forum
            T This user is from outside of this forum
            [email protected]
            wrote last edited by
            #31

            And you can add indexes on those JSON fields too!

            T 1 Reply Last reply
            9
            • P [email protected]

              first thing i'd ask it is how to pronounce SQL

              eager_eagle@lemmy.worldE This user is from outside of this forum
              eager_eagle@lemmy.worldE This user is from outside of this forum
              [email protected]
              wrote last edited by [email protected]
              #32

              Sequel with external collaborators.

              Squeal with the homies.

              1 Reply Last reply
              5
              • A [email protected]

                Just if you need to be able to take it with you.

                Z This user is from outside of this forum
                Z This user is from outside of this forum
                [email protected]
                wrote last edited by
                #33

                The whole point of a database is that you leave it where it is though

                M A 2 Replies Last reply
                3
                • Z [email protected]

                  The whole point of a database is that you leave it where it is though

                  M This user is from outside of this forum
                  M This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #34

                  I think the OP is trying to talk about SQLite, so yeah, he could really be talking about carrying it on his phone.

                  But it's just such a weird word to use there that I can't really be sure.

                  A 1 Reply Last reply
                  2
                  • Z [email protected]

                    The whole point of a database is that you leave it where it is though

                    A This user is from outside of this forum
                    A This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #35

                    Ohhhh right, that's the base part right?

                    1 Reply Last reply
                    1
                    • M [email protected]

                      I think the OP is trying to talk about SQLite, so yeah, he could really be talking about carrying it on his phone.

                      But it's just such a weird word to use there that I can't really be sure.

                      A This user is from outside of this forum
                      A This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #36

                      Or portable like on a USB stick that you can put in any computer instead of installed on a single system.

                      M 1 Reply Last reply
                      1
                      • cm0002@lemmy.worldC [email protected]
                        This post did not contain any content.
                        merari42@lemmy.worldM This user is from outside of this forum
                        merari42@lemmy.worldM This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #37

                        As a (data) scientist I am not super familiar with most databases, but duckdb is great for what I need it for.

                        1 Reply Last reply
                        16
                        • L [email protected]

                          I used to agree, but recently tried out Clickhouse for high ingestion rate time series data in the financial sector and I’m super impressed by it. Postgres was struggling and we migrated.

                          This isn’t to say that it’s better overall by any means, but simply that I did actually find a better tool at a certain limit.

                          M This user is from outside of this forum
                          M This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #38

                          If you can, share your experience!

                          I also do finance, so if there is anything more to explore, I'm here to listen and learn.

                          L T 2 Replies Last reply
                          0
                          • C [email protected]

                            As a complete newb to Postgres, I LOVE arrays.

                            Postgres feels like all of the benefits of a database and a document store.

                            M This user is from outside of this forum
                            M This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #39

                            Yeah, that was the goal.

                            First make it feature-complete document-oriented database, then make if peroformant.

                            And you can feel the benefits in every step of the way. Things just work, features actually complement each other... and there's always a way to make any crazy idea stick.

                            1 Reply Last reply
                            4
                            • S [email protected]

                              Oracle:

                              Only the best in B2B marketing for our shit software.

                              EDIT:

                              hah ok, round two, more directly playing on the actual company name:

                              Oracle:

                              We tell you what you think you want to hear.

                              M This user is from outside of this forum
                              M This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #40

                              I have to admit though, I've never admined the Oracle DB, but I did talk a lot with people who did.

                              I remember over 10 years ago discussing transactional DDLs as I heard Oracle does it, too, just to listen to 5 minute lecture about how it's nowhere near as simple.

                              1 Reply Last reply
                              0
                              • S [email protected]

                                After having suffered with T SQL at MSFT for a number of years... yep, PostGres is almost always the best for almost any enterprise setup, despite what most other corpos seem to think.

                                Usually their reasons for not using it boil down to:

                                We would rather pay exorbitant licescing fees of some kind, forever, than rework a few APIs.

                                Those few APIs already having a fully compatible rewrite, done by me, working in test, prior to that meeting.

                                Gotta love corpo logic.

                                M This user is from outside of this forum
                                M This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #41

                                Yes, had those issues as well, though lately not a big corp, but mid-sized company.

                                One manager just wanted MySQL. We had trouble getting required performance from MySQL, when Postgres had good numbers. I had the app fully ready, just to be told no, you make it work in MySQL. So we dropped some 'useless stuff' like deferring flushing to disk and such.

                                1 Reply Last reply
                                2
                                • C [email protected]

                                  I have a colleague like that too, and then the other camp that loves MySQL.

                                  Why do you like postgres

                                  O This user is from outside of this forum
                                  O This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #42

                                  I usually tell people running MySQL that they would probably be better off using a NoSQL key-value store, SQLite, or PostgreSQL, in that order. Most people using MySQL don't actually need an RDBMS. MySQL occupies this weird niche of being optimised for mostly reads, not a lot of concurrency and cosplaying as a proper database while being incompatible with SQL standards.

                                  L 1 Reply Last reply
                                  4
                                  • M [email protected]

                                    If you can, share your experience!

                                    I also do finance, so if there is anything more to explore, I'm here to listen and learn.

                                    L This user is from outside of this forum
                                    L This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #43

                                    Clickhouse has a unique performance gain when you have a system that isn’t operational data that is normalized and updated often. But rather tables of timeseries data being ingested for write only.

                                    An example, stock prices or order books in real-time. Tens of thousands per second. Clickhouse can write, merge, aggregate records really nicely.

                                    Then selects against ordered data with aggregates are lightning fast. It has lots of nuances to learn and has really powerful capability, but only for this type of use case.

                                    It doesn’t have atomic transactions. Updates and deletes are very poor performing.

                                    1 Reply Last reply
                                    4
                                    • T [email protected]

                                      And you can add indexes on those JSON fields too!

                                      T This user is from outside of this forum
                                      T This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #44

                                      Kind of. I hope you don't like performance...

                                      J T 2 Replies Last reply
                                      4
                                      • M [email protected]

                                        If you can, share your experience!

                                        I also do finance, so if there is anything more to explore, I'm here to listen and learn.

                                        T This user is from outside of this forum
                                        T This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #45

                                        For high ingestion (really high) you have to start sharding. It's nice to have a DB that can do that natively, MongoDB and Influx are very popular, depending on the exact application.

                                        1 Reply Last reply
                                        1
                                        • L [email protected]

                                          I used to agree, but recently tried out Clickhouse for high ingestion rate time series data in the financial sector and I’m super impressed by it. Postgres was struggling and we migrated.

                                          This isn’t to say that it’s better overall by any means, but simply that I did actually find a better tool at a certain limit.

                                          Q This user is from outside of this forum
                                          Q This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by [email protected]
                                          #46

                                          I've been using ClickHouse too and it's significantly faster than Postgres for certain analytical workloads. I benchmarked it and while Postgres took 47 seconds, ClickHouse finished within 700ms when performing a query on the OpenFoodFacts dataset (~9GB). Interestingly enough TimescaleDB (Postgres extension) took 6 seconds.

                                          Insertion Query speed
                                          Clickhouse 23.65 MB/s ≈650ms
                                          TimescaleDB 12.79 MB/s ≈6s
                                          Postgres - ≈47s
                                          SQLite 45.77 MB/s^1^ ≈22s
                                          DuckDB 8.27 MB/s^1^ crashed

                                          ^All^ ^actions^ ^were^ ^performed^ ^through^ ^Datagrip^

                                          ^1^ ^Insertion^ ^speed^ ^is^ ^influenced^ ^by^ ^reduced^ ^networking^ ^overhead^ ^due^ ^to^ ^the^ ^databases^ ^being^ ^in-process.^

                                          Updates and deletes don't work as well and not being able to perform an upsert can be quite annoying. However, I found the ReplacingMergeTree and AggregatingMergeTree table engines to be good replacements so far.

                                          Also there's [email protected]

                                          1 Reply Last reply
                                          9
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups