4 ms·
Dgraph supports flexible schema. So, you can make a lot of changes to the schema without any "table migration" or downtime. For example, switching from int to d
by mrjn 6y ago
Dgraph supports flexible schema. So, you can make a lot of changes to the schema without any "table migration" or downtime. For example, switching from int to datetime to string, adding fields, removing fields, adding relationships between types, all of this stuff needs no "DB work."
So, schema migrations are really easy with Dgraph, because it is a graph storage model, which allows for sparse properties to any data type (as opposed to the rigid table model enforced by SQL DBs).
- austinpena 6y agoDon’t you store everything as bytes and then just read it as the file type?
- mrjn 6y agoI can never tell if people on HN are joking or being serious.
- danychok 6y agoSo switching from int to datetime will somehow migrate existing data from one form to another?
- mrjn 6y agoThe existing stored data would stay as it is. It would be automatically converted to datetime on query. The new data that's coming in would be stored as datetime. From user's perspective, the change would be instant.