API server should not create a new database handle on each request
Bug #1178845 reported by
Doug Hellmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Medium
|
Julien Danjou |
Bug Description
In the DBHook we call get_engine() for each request. We should only do that *one time* and save the result, then reuse that reference on other requests. Otherwise we're doing extra work to scan the plugins and create new database handles.
https:/
Changed in ceilometer: | |
assignee: | nobody → Doug Hellmann (doug-hellmann) |
milestone: | none → havana-2 |
tags: | added: effort-s |
Changed in ceilometer: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in ceilometer: | |
assignee: | Doug Hellmann (doug-hellmann) → nobody |
milestone: | havana-2 → havana-3 |
Changed in ceilometer: | |
assignee: | nobody → Julien Danjou (jdanjou) |
Changed in ceilometer: | |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | havana-3 → 2013.2 |
To post a comment you must log in.
@Doug, will the fix only keep one database Connection object? I'm glad to see if there is only one Connection object that API server is using, this will also help to fix https:/ /bugs.launchpad .net/ceilometer /+bug/1188649