-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add caching for DB table structure operations
Similar to ac6f81d for table exists checks. By remembering the table structure, we don't need to look it up each time we want to insert or update a row. Saves a little bit of time off mass-inserts/updates. Until we can improve `alterTable()`, the cached table structure is cleared whenever a change is made to the table. Added: - Method `setTableStructure()` to store copy of table schema on PDO instance - Method `queryTableStructure()` to prepare and run actual table schema retrieval Changed: - Method `tableStructure()` to delegate and remember lookup - Method `alterTable() to clear cached table structure
- Loading branch information
Showing
1 changed file
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters