Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Cloudflare Quick Tunnels(cloudflare.com ↗)
    145comments
  2. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    13comments
  3. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    90comments
  4. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    31comments
  5. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    35comments
  6. OpenJev(openjev.com ↗)
    217comments
  7. Show HN: Ax-check.com – Can agents use your product?(ax-check.com ↗)
    1comments
  8. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    122comments
  9. Grok Voice Transcribe 2.0(x.ai ↗)
    3comments
  10. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    124comments
  11. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    184comments
  12. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    6comments
  13. I don't like passkeys(hawksley.dev ↗)
    581comments
  14. Jemalloc 5.4.0(github.com/jemalloc ↗)
    76comments
  15. NATS publishes preliminary report on technical incident of 8 September(nats.aero ↗)
    24comments
  16. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    5comments
  17. The scourge of x86 emulation(fex-emu.com ↗)
    71comments
  18. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  19. Systemd is a suite of basic building blocks(systemd.io ↗)
    8comments
  20. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    12comments
  21. GrassLobster: AI Agentic Generation of Parametric Geometry Workflows(miro.vision ↗)
    4comments
  22. BeanShell3 in Development(beanshell.github.io ↗)
    15comments
  23. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    167comments
  24. Replacing Pull Requests with Delta(zed.dev ↗)
    75comments
  25. AI chatbots are becoming experts at changing people's minds(science.org ↗)
    83comments
  26. Border agents can search cellphones without a warrant or reasonable suspicion(lawandcrime.com ↗)
    4comments
  27. An empirical study of harness design for coding agents(arxiv.org ↗)
    43comments
  28. Build Faster Feedback Loops Using Qualitative User Research(nseldeib.com ↗)
    2comments
  29. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    62comments
  30. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    672comments

Designing Schemaless, Uber Engineering’s Scalable Datastore Using MySQL

59 pointsby 10y agoeng.uber.com
13 comments
10y agoHN ↗

Is it me or could they have done this way more easily by building some indexing and triggering functionality on top of Cassandra? Even two years ago when they started. Instead they built sharding, indexing, triggering and a Cassandra-like data model on top of MySQL.

10y agoHN ↗

What fun is that when you can abuse technology and then flaunt how clever you are for the abuse?

10y agoHN ↗

main lesson - for a new generation of what would at first look seems like OLTP business, the OLTP pieces like transactional triggers and transactional indexes aren't a requirement anymore. I.e. those requirements seems to go the same way - south - as the transactional consistency of search indexes had went several years ago.

10y agoHN ↗

The question I have is schema updates. The biggest pain I have had with things like Mongo is dealing with old data records.

Use case example for Uber:

1. In 2011, a driver joined. They made a bunch of trips

2. In 2012, Uber added more detail about the trip. Information not collected for the 2011 trips.

3. And so on, each year there are 'just a few changes'

Given the above:

In 2016, Uber want to run a query to reward all drivers based on some piece of information that was only present in 2014 on.

At this point the historical trip information from 2011 is in a significantly different format than in 2016.

In a RDB, at least the old columns are there - or if the db was migrated to a new schema ( a pain ) the issue of the missing fields was addressed.

But dealing with data in old formats was an Uber pain. And the lack of visibility into just knowing the schema used to generate that JSON object is a PITA.

God forbid if you had new code that never even knew about the old 2011 format.

Lastly, what happens if a bug slips through and some JSON field is missing, has odd spelling ( capitalization wrong ), etc.

I would love to hear about how old data is handled in schemaless.

My experience with MongoDB was less than pleasant.

10y agoHN ↗

I'm a huge proponent against "NoSQL" for 99% of use cases/scale and I'll admit that you would have this same problem even with a relational database any time that you add a column that you can't auto-populate based off some pre-existing knowledge.

10y agoHN ↗

God, what a name. A hyphen might be in order, as in:

  schema-less

...at first I read it as she-males.

10y agoHN ↗

Same for me. "Schemalessness" is even worse.

I have no idea why this word caught on instead of "aschematic", which is much easier to parse.

10y agoHN ↗

Odd that they chose MySQL, when they were previously using Postgres. In particular, Postgres' JSON support is so extensive (including indexing, which now is even more extensive [1]), and offers performance benefits over MySQL.

The advantage of MySQL in this situation is probably the support for multimaster replication.

[1] http://pgxn.org/dist/jsquery/

10y agoHN ↗

Is it just me or is the reasoning behind the switch from postgres to mysql very vague? They describe a sharded mysql database... Sharding postgres isn't necessarily any more difficult, instagram apparently uses it in a sharded manner with many shards. You'd think storing json in the pretty sweet jsonb column type in postgres would be a nice bonus for querying or indexing on.

I guess someone at uber must really like mysql, a good enough reason as any other I suppose. I'd love to hear about what other reasons as to why mysql turned out to be the choice here, as I've usually gone the other way (mysql to pgsql) for many of the great features and performance pgsql has.

10y agoHN ↗

They might've had really experienced mysql dbas. While postgres does seem to be as nice, in my experience, it's harder to find people who truly understand it, vs people who truly understand mysql. Not saying mysql is better, but there's more (deep) experience for it out there.