Skip to content
DevMeme
1902 of 7590
Databases Post #2112 · source on Telegram

Database Seeding: A Strategic Approach

Description

A meme about the common practice of seeding databases with placeholder data during development. The top text reads, 'Me when I need to seed a database'. Below is a comic book panel of the Marvel character Moon Knight, in his white costume, throwing a large number of his crescent-shaped projectiles and other items indiscriminately. A speech bubble from him yells, 'RANDOM BULLSHIT GO!!!'. The humor lies in the chaotic energy of the image perfectly capturing how developers often approach creating initial data for a database. Instead of carefully curated, realistic data, they frequently use scripts to generate large amounts of random, often nonsensical, data (like 'lorem ipsum' text and random numbers) to populate tables for testing and development, a process that can feel exactly like throwing 'random bullshit' at the problem

Comments

23
Anonymous ★ Top Pick My seeder script ensures perfect referential integrity by making sure every foreign key is NULL
  1. Anonymous ★ Top Pick

    My seeder script ensures perfect referential integrity by making sure every foreign key is NULL

  2. Anonymous

    When the CI job calls `seedTestData()`, I turn into Moon Knight: “Random bullshit, GO!” - nothing reveals a hidden N+1 or rogue cascade delete faster than 5 GB of lorem-ipsum with mismatched foreign keys

  3. Anonymous

    The seed data that somehow passes all your carefully crafted database constraints but breaks production in ways your 200-page test plan never imagined

  4. Anonymous

    Every senior engineer knows that moment when the PM asks for a demo environment 'by EOD' and you're frantically running `faker.name()`, `faker.email()`, and praying your seed script doesn't violate any foreign key constraints. Bonus points if your production database accidentally gets 10,000 users named 'John Doe' because someone forgot to check the environment variable

  5. Anonymous

    ACID transactions for prod inserts; for seeding, just rand() the house keys and watch referential integrity weep

  6. Anonymous

    Our seed script uses Faker with uniform distributions; production is Pareto - green in staging, pager in prod

  7. Anonymous

    Seeding the dev DB: seed(42), unleash Faker, violate a few foreign keys, and let ON CONFLICT DO NOTHING masquerade as idempotence

  8. @ruslan_alive 5y

    hey

    1. @neeek23 5y

      Hi!

      1. @ruslan_alive 5y

        Nice to meet you!

        1. @neeek23 5y

          Me too! I'm fine, working hard this week. And you?

          1. @ruslan_alive 5y

            The same as you!

  9. @ruslan_alive 5y

    How are you doing, man?

  10. @ruslan_alive 5y

    Great to hear

  11. @neeek23 5y

    I hope we will have a lot of fun on your party this weekend!

    1. @ruslan_alive 5y

      I really hope too!

  12. @gammapopolam 5y

    mojno po russki pojalusta

    1. @neeek23 5y

      Sorry, we are from skoltech, we can't speak Russian

      1. @e18e02930b94d725daa9 5y

        lmao

  13. @neeek23 5y

    we are forbidden to do it

  14. @gammapopolam 5y

    moscow style!!!!!)))))🤟🤟🤟🤘🤘🤘

    1. @neeek23 5y

      😎👍😁

  15. @proctor_and_gamble 5y

    Are you ahyeli tam?

Use J and K for navigation