Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@toast.ooo to Programming@programming.dev · 3 days ago

All you need is PostgreSQL

ebellani.github.io

external-link
message-square
14
fedilink
  • cross-posted to:
  • programming@lemmy.ml
  • postgresql@programming.dev
44
external-link

All you need is PostgreSQL

ebellani.github.io

cm0002@toast.ooo to Programming@programming.dev · 3 days ago
message-square
14
fedilink
  • cross-posted to:
  • programming@lemmy.ml
  • postgresql@programming.dev
Introduction The setup Laying the foundation The foundation: schemas and user roles for modularity Domains Accounts, managed and external Transfers, constrained by a state machine and temporal periods Transfer state history Account auditing Transactions, the immutable events On maintaining business rules via meaningful constraints The transfer state machine Transactions must fall within the transfer period Pending transactions require a pending transfer No future transactions when closing a transfer On capacity planning Working set estimation On write throughput Enabling HOT Updates for Transfers Making sure there are no Unused indexes OLTP Listing The history of a transfer OLAP Balance ledger Incremental maintenance via triggers On serializable isolation On decoupling Benchmarking the startup scenario Seed data Write script: full transfer lifecycle Read script: activity stream and balance Running the benchmark Results Conclusion Appendix A: Full code suite. Introduction There is a deep cultural reflex in modern engineering: whenever a problem appears, reach for a packaged solution instead of thinking from first principles. The result is architectural cargo culting and lots of missed opportunities. Some intentionally absurd-but-familiar examples:
  • Valmond@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    8
    ·
    3 days ago

    Or SQLite for embedded systems, and a NoSQL for no-sql, and MariaDB for FOSS DB.

    Did I forget anything?

    • atzanteol@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 days ago

      And Oracle if you have way too much money just kicking around.

      • Seb the goblin@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        3 days ago

        Even if I was a *illionaire I’d rather gargle lava rocks than touch Oracle with a mile long pole

      • terabyterex@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        3 days ago

        if tpu give rhat money to oracle you are finding an extreme facist who believes our entire life should be recorded by the government and stored on oracle servers. he honestly said it will get rid of crime since you will alwaus be watched.

    • MonkderVierte@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 day ago

      Orbitdb or p2p. Also, XML.

    • Fedop@slrpnk.net
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      And DuckDb for columnar data storage

      • Valmond@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        Like an excel sheet?

Programming@programming.dev

programming@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: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

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

  • 292 users / day
  • 668 users / week
  • 2.82K users / month
  • 8.15K users / 6 months
  • 175 local subscribers
  • 27.5K subscribers
  • 3.41K Posts
  • 49K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • UlrikHD@programming.dev
  • bugsmith@programming.dev
  • Spyro@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org