|
-
Apr 14th, 2008, 11:26 PM
#8
Re: MYSQLI Prepared Statements
Good work. 
Caching columns is pretty common practice. However, it does mean more work to maintain data integrity.
If you're using MySQL 5, you can use table triggers (basically a mini stored procedure that can be hooked on to various events like insert or delete) to automatically update the cache columns, thus minimising the amount of code you have to write and lessening the chance of getting the counts out of sync.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|