Better HN
topnewbestaskshowjobs
Log inSign up

kfool

10 karma · joined Sep 22, 2009 (17y ago) · 52 submissions

Submissions

comment 14y ago · link · parent

- schema. Maintaining schema and dependencies is hell on all but a small system

When you have the tools you have the power.

comment 14y ago · link · parent

ChronicDB is not only a hosted solution. It also runs locally.

comment 14y ago · link · parent

Sorry for not disclosing I work on ChronicDB.

The author of the 6b article kindly provided more information about the time it took for the migration:

http://news.ycombinator.com/item?id=3621561

A couple of limitations of the Percona tool are related to changing data in tables with ON DELETE and ON UPDATE foreign key constraints and possible lock-ups of tables. It is a bi-directional replication tool, so it has to deal with the master-master replication case and as such does not guarantee data consistency.

Still the tool is helpful in many cases and congrats to Percona for developing it. Replication safety is a non-trivial problem in general.

comment 14y ago · link · parent

The toolkit documentation reports limitations.

What they really needed is ChronicDB http://chronicdb.com

comment 14y ago · link · parent

NoSQL does not support flexibility of schema change.

http://chronicdb.com/blogs/nosql_is_technologically_inferior....

Flexibility of schema definition and flexibility of schema change are two different things. Defining schemas only involves data. But changing schemas involves not just data, but code too.

6.

ChronicDB offers public SQL gateway over HTTP(chronicdb.com ↗)

1 points · by kfool · 14y ago · discuss

comment 14y ago · link · parent

The issue is not performance. The issue is backward compatibility.

ALTER TABLE performance will eventually improve. PostgreSQL 9.1 lifts-off the lock-up limitation.

But what a performant ALTER TABLE will not improve is its intrusiveness to applications. When you change the schema you break the app.

That's the problem.

http://chronicdb.com/blogs/change_is_not_the_enemy

8.

Anonymous SQL(chronicdb.com ↗)

2 points · by kfool · 14y ago · discuss

comment 14y ago · link · parent

Which part of the Slicehost to Rackspace migration required the additional time that had not been invested?

Also, what do BCC and AR refer to?

10.

Should an RDBMS be a proper Unix tool?(briantheprogrammer.com ↗)

2 points · by kfool · 14y ago · discuss

comment 14y ago · link · parent

Now it's time to bring the idea beyond code

Exactly! Try versioning data with ChronicDB:

http://chronicdb.com

comment 14y ago · link · parent

Referential integrity is to databases what pointers are to code. You definitely need it.

What's worse than migrations? Being unable to turn an application off, since it uses the old schema.

With ChronicDB we support indefinite backward compatibility. Unlike per-record versioning tricks, application code does not need to be aware of migration code.

comment 15y ago · link · parent

Version data, like source code.

  $ chd version mydb
  $ chd revert -d <txn_id> mydb
Neither replication nor backups protect from accidentally deleting data. And restoring from binary logs requires downtime.

http://chronicdb.com/blogs/undelete_from_whoops

comment 15y ago · link · parent

Not always. An app requiring non-trivial SQL can be an indication of a problem requiring non-trivial workflows.

If the problem is complex, you want to model relations, not ignore them.

(But clearly not in this hairy query.)

comment 15y ago · link · parent

> "because of the schema-less models."

> "I find migrations painful and unnecessary."

A schema-less model neither makes a migration less painful nor eliminates it.

In MongoDB, what did you do when the data model changed?

comment 15y ago · link · parent

(Disclaimer: I work on ChronicDB)

I second that: schema-less is misunderstood.

There's a difference between flexibility of schema definition and flexibility of schema change[1].

Flexibility of schema change, which NoSQL does not solve, is increasingly more important. Not just for large data stores but also for the data development process and release process. To avoid playing the suboptimal schema-change game both the code and the data need to be updated together. Or at least be given the illusion that they have[2].

A probably obvious question most developers must have asked by now is: if we've built great tools to version source changes, how come we haven't built great tools to version data changes?

[1] - http://chronicdb.com/blogs/nosql_is_technologically_inferior...

[2] - http://chronicdb.com/blogs/change_is_not_the_enemy

17.

Change is not the enemy(chronicdb.com ↗)

1 points · by kfool · 15y ago · discuss

18.

Undelete from whoops;(chronicdb.com ↗)

1 points · by kfool · 15y ago · discuss

comment 15y ago · link · parent

This can be handled by deleting orders from the logical representation, yet preserving them in the historical layer.

comment 15y ago · link · parent

That's one of the things ChronicDB does. It makes historical values available in the average application.

comment 15y ago · link · parent

Was there something specific it the data model that made the versioning hard to write? Or was it that, for this to work across the board, the entire model had to be versioned?

It sounds that SQL itself wasn't the problem. Were you looking for versioning alternatives in SQL that weren't up to par?

comment 15y ago · link · parent

Isolating databases behind APIs and rev-ing API+schema separately is not enough. When the schema changes, data must be transformed to match the new schema version. As you point out this takes too long with a large database, and it doesn't account for data consistency.

We have been working on building what we hope are the procedures for this with ChronicDB (http://chronincdb.com). But it turned out harder than it seems, and we are not sure it will quite work out. We'd welcome feedback.

12