[wp-trac] [WordPress Trac] #34903: wpdb needs a close function
WordPress Trac
noreply at wordpress.org
Tue Dec 8 00:07:13 UTC 2015
#34903: wpdb needs a close function
-------------------------+-----------------------------
Reporter: fabifott | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 4.3.1
Severity: normal | Keywords:
Focuses: performance |
-------------------------+-----------------------------
For a complete abstraction of the database access, the wpdb class needs a
close() function.
A sample situation is a file-serving script, that runs for a long time
reading a big file and pumping the bytes to the browser. Here a database
connection is an unneeded resource and should be closed as soon as the IO
pump starts.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34903>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list