Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Expert PHP and MySQL
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Expert PHP and MySQL
This is the forum to discuss the Wrox book Expert PHP and MySQL by Andrew Curioso, Ronald Bradford, Patrick Galbraith; ISBN: 9780470563120
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Expert PHP and MySQL section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 16th, 2010, 05:19 AM
Registered User
 
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down Chapter 5 deprecated

I'm reading this fantastic book but I'm having some problems with the chapter 5, "memcache and MySQL".

I think the approach described in this chapter is very usefull especially when you're creating complex application with a huge amount of memcache keys; in an consistent application you want that cached objects referencing to older information previously saved in a MySQL table have to be immediately deleted from the memcache, preserving the overall data coherence.
This task could be easly done with a simple trigger in MySQL where, each time you remove a row from a table automatically the trigger send a memc_delete() call to the memcache server, specify the key of the cached element to remove.

Right now the only problems seems to be the MySQL plugin described in this chapter; infact the memcached-udfs project is out of maintenance and is not possible to compile this plugin in an updated enviroment with the last libmemcached (I'm using the 0.40 but the same problems seems to be affected in older version).
It seems like the source point to deprecated functions/variables name and also fixing that from the source code, when you try to import and install the memcached-udfs functions in the MySQL server some pointing errors are displayed, making impossible the use of this library.

In the project page there are a lots of bug reported but right now nobody try to fix those and make this library updated.

I think this is a big issue especially in a new book released just a couple of months ago.
Reply With Quote
  #2 (permalink)  
Old June 16th, 2010, 11:18 AM
Registered User
 
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi there - thanks for letting me know about that. I need to get out a new release of the UDFs.

Also, another way to make sure you delete items accordingly is to use expiry times for items that you want refreshed more often, or whenever you perform any write action (insert, delete, update), make sure to do the same with memcached.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ulysses Framework contains deprecated code nebular BOOK: Professional PHP6 1 June 7th, 2010 09:35 AM
Call-time pass-by-reference has been deprecated tusharkale Beginning PHP 0 October 9th, 2007 09:32 AM
Chapter 17, p.568, "Style", deprecated attributes irish_songbird BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 October 22nd, 2006 08:41 PM
GenericDataSource Deprecated lizethfc JSP Basics 0 June 5th, 2003 11:08 AM



All times are GMT -4. The time now is 02:02 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.