Page MenuHomePhabricator

Review Suggestor MariaDB+Rocket connection handling
Open, Needs TriagePublic


Per holding open connections is not allowed.

I believe that the connection pool Rocket uses by default *does* hold connections open, so we need to disable that functionality or find some workaround so we're compliant with policy.

Event Timeline if we set the min_idle = 0 and max_lifetime = 30s, I think that would fit within the spirit of the policy. Not sure yet how to pass those options via Rocket though.

We could also use diesel directly and skip the Rocket layer but then we have to do all the async -> sync wrapping ourselves.

Change 700019 had a related patch set uploaded (by Legoktm; author: Legoktm):

[labs/tools/suggestor@master] Drop database pooling, use manual connection handling