You are here: Re: best approach to caching DB results « PHP Programming Language « IT news, forums, messages
Re: best approach to caching DB results

Posted by Jerry Stuckle on 01/05/08 02:46

Rowan wrote:
>
>
> What is the best approach to caching database results. example say i'm
> doign an update on several entries which i've loaded into an array. I
> want to allow the user to click through and up date each array entry
> then dump everythign to the db once they are done...
>

Don't bother. It's normally cheaper to just keep track of the ID's and
fetch the results again.

You should be fetching them again before updating anyway, and verifying
the rows haven't changed (i.e. two people updating at the same time).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация