Commit Graph

8 Commits

Author SHA1 Message Date
Lin Jen-Shin ca65982225 Use Gitlab::Database.with_connection_pool from !9192 2017-02-14 20:29:36 +08:00
Lin Jen-Shin ae93d08b9c Disconnect the pool after done 2017-02-14 20:14:22 +08:00
Lin Jen-Shin 8aa1055fe3 Use threads directly, introduce pool later:
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8987#note_22938402
2017-02-14 20:14:22 +08:00
Lin Jen-Shin 7ecee7a4d7 Introduce ThreadedConnectionPool for customized pool
This way we could reuse this pool for other migrations

Feedback:

* https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8987#note_22923350
* https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8987#note_22923365
2017-02-14 20:14:22 +08:00
Lin Jen-Shin 521a7cafd4 Try this way to provide database connection 2017-02-14 20:13:54 +08:00
Lin Jen-Shin 887aeefba6 Use IS FALSE for both pg and mysql; Handle connections
by ourselves so that even if the setting has 1 connection
we could still use more connections.
2017-02-14 20:13:54 +08:00
Lin Jen-Shin 25cd5aa228 Run two threads to improve migration running time 2017-02-14 20:13:54 +08:00
Lin Jen-Shin a770227139 Remove inactive default email services
Note that we no longer generate this by default.
This is for clearing legacy default data.
2017-02-14 20:13:54 +08:00