You are here: Re: faster way to get from SQL database into array « PHP Programming Language « IT news, forums, messages
Re: faster way to get from SQL database into array

Posted by Norman Peelman on 12/13/06 12:50

"Erwin Moller"
<since_humans_read_this_I_am_spammed_too_much@spamyourself.com> wrote in
message news:457fdab9$0$326$e4fe514c@news.xs4all.nl...
> Toby Inkster wrote:
>
> > Erwin Moller wrote:
> >
> >> You have a certain value that you transform to a md5 and check if it is
> >> your db allready, right?
> >
> > No -- he has *hundred of thousands* of "certain values" that he needs to
> > transform to an MD5 and check to see if it's in his DB already.
> >
> > What you are suggesting is (pseudo-code abound):
>
> No, I am explicitely NOT suggesting that because that would be very stupid
> and I am not. :P
> I suggested he does 1 query with the precalculated md5-hash (You must have
> misread my post: please reread my post, it clearly suggest 1 query).
>
> But it is entirely possible I do not understand the problem.
> That has to do with the fact I cannot imagine a setup that needs to do
this,
> and if it is needed, that design was bad and needs to be redone IMHO.
>
> I understood that the database holds the md5-hashes, not the raw data, and
> the OP said this in his original message:
> "I currently have a list of md5 strings and need to check if a new
> string is in that list hundreds of thousands of times."
>
> What is unclear to me is WHY he has zillion values to transform to
> md5-hashes.
> Sounds like very bad design to me.
>
> But since Cleverburn dropped out of this discussion, it will be hard to
tell
> what he actually is doing. We can only guess.
>
> Regards,
> Erwin Moller
>
>

Yeah, that's what I said...

Norm
--
FREE Avatar hosting at www.easyavatar.com

 

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

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