sunbains Profile Banner
Sunny Bains @TiDB Profile
Sunny Bains @TiDB

@sunbains

Followers
3K
Following
3K
Statuses
3K

swe@PingCAP - The company behind TiDB. Oracle/MySQL/InnoDB team lead in a past life

California, USA
Joined April 2012
Don't wanna be here? Send us removal request.
@sunbains
Sunny Bains @TiDB
3 hours
I'm waiting for the company that creates an AI coding agent as a bootstrap, which they then use to solve real problems and make their trillions.
0
0
1
@sunbains
Sunny Bains @TiDB
4 hours
Where latency is a critical constraint and is smaller than what’s practically possible then forget about global consensus with low latency. You will have to come up with some other strategy. The technique usually it’s fatter pipes for high throughput and eventual consistency only. If you can live with >= 8ms, 99.99% of the apps fall into this, it’s doable.
1
0
0
@sunbains
Sunny Bains @TiDB
6 hours
You are correct that a managed service hides replication complexity from the end user, but then why do people use a managed service? It’s for resilience and HA. Failover is not the same between an eventually consistent replicated MySQL/Postgres and a strongly consistent distributed SQL database like TiDB, where an application won’t even notice a storage node failure. Once you throw scale into the mix, welcome to manual sharding hell. My original point still stands 🙂
2
0
2
@sunbains
Sunny Bains @TiDB
6 hours
Dunno, once you throw in replication and eventual consistency the burden is pushed to the application. My preference would be to write my application as if it’s talking to a single node. Adding additional hosts should not require an application change. Assuming, you care about resilience/HA, if you do t then yes single instance of MySQL should work just fine and is less complex to run.
0
0
2
@sunbains
Sunny Bains @TiDB
7 hours
0
0
1
@sunbains
Sunny Bains @TiDB
9 hours
@KintuLabs I wonder if this is true, majority of the people who buy expensive sports cars usually don’t drive them on race tracks or even know how to drive them well. Wonder if it’s just positioning and marketing buy it and they will come.
1
0
1
@sunbains
Sunny Bains @TiDB
1 day
@mjkhanga @srsarangi I’ve been following him from when he started, his first videos were on distributed systems. I ended up buying his book on modern CPU architecture on one of my trips to India. After watching the videos on the chapters in the book.
0
0
3
@sunbains
Sunny Bains @TiDB
1 day
I was under the impression that QNX had busted the myth that micro kernel architecture was too slow.
@tianyin_xu
Tianyin Xu
1 day
The background is that early microkernels like Mach were too slow; developers constantly moved things (e.g., file systems) back into the kernel for performance. As a result, researchers and developers started to question the microkernel idea -- a too slow kernel is hardly competitive, despite its reliability/security benefits. Why microkernels are slow? Think about IPC vs. procedure call overhead (e.g., on Linux).
Tweet media one
2
1
3
@sunbains
Sunny Bains @TiDB
2 days
@lemire A big step forward, sadly compiler support is lagging behind.
1
0
4
@sunbains
Sunny Bains @TiDB
2 days
@shayonj Interesting, do you have any metrics on database size? Number of connections etc? Like a before and after type of thing.
1
0
0
@sunbains
Sunny Bains @TiDB
3 days
@walkingriver @dhh I’m no expert so I believe this. I was under the impression that as long as you provide the source code it’s fine.
1
0
1
@sunbains
Sunny Bains @TiDB
3 days
@walkingriver @dhh What was the licensing issue?
1
0
1
@sunbains
Sunny Bains @TiDB
3 days
I work for PingCAP 🙂 More seriously, I haven’t seen a single business installation where HA/Resiliency was not important. MySQL story here is much better than PG. Scaling I think is usually secondary problem, a good problem to have. Databases like TiDB, there’s Yugabyte and CRDB too, are designed from the ground up to be resilient,you can start very small and scale almost infinitely. I’m convinced that if they were around 20 years ago, the Internet would be running on them.
1
0
3
@sunbains
Sunny Bains @TiDB
3 days
@MarkCallaghanDB Ken sadly passed away a few years ago. Heikki doesn’t get enough recognition. MySQL’s success is based on replication and InnoDB.
1
0
1
@sunbains
Sunny Bains @TiDB
3 days
FWIW, InnoDB has its own SQL parser and optimizer, with stored procedures etc. but it’s not used for anything substantial. Very simple use by the FTS code.
@wangbin579
wangbin579
4 days
I've always believed that the core of a database should be the execution plan—it's the brain. The most complex part of PostgreSQL's code is the execution plan, while MySQL's core is the InnoDB storage engine.
0
1
20
@sunbains
Sunny Bains @TiDB
3 days
@MarkCallaghanDB I remember that, we were really looking forward to your joining the team 🙂. Ken was very excited.
1
0
1
@sunbains
Sunny Bains @TiDB
3 days
The MySQL optimizer team has been quiet about their achievements (I also know why 😀) and have made substantial progress in fixing the core architecture that they inherited according to my sources. I was chatting with Norvald (lead) at FOSDEM and he told me that the refactoring has now been completed and they are in a position to make significant improvements over plan generation. I haven’t looked at the code but I trust Norvald. Will these or future changes make it into MySQL or remain in Heatwave? That’s an open question.
1
1
13