Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The biggest issue with MySQL/MariaDB isn't so much data corruption at the InnoDB level but stuff like:

  MariaDB [test]> create table test ( i int );
  Query OK, 0 rows affected (0.06 sec)
  
  MariaDB [test]> insert into test values (''), ('xxx');
  Query OK, 2 row affected, 2 warning (0.01 sec)
  
  MariaDB [test]> select * from test;
  +------+
  | i    |
  +------+
  |    0 |
  |    0 |
  +------+
  2 row in set (0.01 sec)
There's a bunch of other similar caveats as well, and this can really take you by surprise. I've seen it introduce data integrity issues more than once.

That's a new MariaDB 15.1 with the default settings I just installed the other day to test some WordPress stuff. I know there are warnings, and that you can configure this by adding STRICT_ALL_TABLES to SQL_MODE, but IMO it's a dangerous default.

This is also an issue with using MongoDB as a generic database: every time I've seen it used there were these kind of data integrity issues: sometimes minor, sometimes brining everything down. Jepsen reports aside, this alone should make people double-check if they really want or need MongoDB, because turns out that most of the time you don't really want this.



15.1 is not a version. Since MariaDB 10.2, this is not possible as strict_trans_tables is enabled by default in sql_mode.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: