summaryrefslogtreecommitdiff
path: root/doc/install
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-01-18 15:52:26 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-01-18 21:27:56 +0100
commitd1c474ae6aa98e281cdc46da183a0c29a324ba31 (patch)
tree20cb13640cea1c1f15fcc3467c6b367ee22cd0a2 /doc/install
parentb76bfe35c76084f17a7c017192049b793f70b9b1 (diff)
downloadgitlab-ce-d1c474ae6aa98e281cdc46da183a0c29a324ba31.tar.gz
Add information about PostgreSQL<>MySQL 'text' type differences into to installation docs
Diffstat (limited to 'doc/install')
-rw-r--r--doc/install/database_mysql.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/install/database_mysql.md b/doc/install/database_mysql.md
index 513ad69ec26..4a2c699129d 100644
--- a/doc/install/database_mysql.md
+++ b/doc/install/database_mysql.md
@@ -52,3 +52,22 @@ We do not recommend using MySQL due to various issues. For example, case [(in)se
mysql> \q
# You are done installing the database and can go back to the rest of the installation.
+
+## MySQL strings limits
+
+After installation or upgrade is done, remember to run `add_limits_mysql` rake task:
+
+```
+bundle exec rake add_limits_mysql
+```
+
+The `text` type in MySQL have different size limit than `text` type in PostgreSQL. In MySQL `text` columns are limited
+to ~65kB, where in PostgreSQL `text` columns are limited up to ~1GB!
+
+`add_limits_mysql` rake task converts some important `text` columns in GitLab database to `longtext` which can persist
+up to 4GB characters (may be less if the value contains multibyte characters).
+
+Details can be found in [PostgreSQL manual][postgres-text-type] and in [MySQL manual][mysql-text-types].
+
+[postgres-text-type]: http://www.postgresql.org/docs/9.1/static/datatype-character.html
+[mysql-text-types]: http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html