Re: [PHP] Re: find (matching) person in other table
- From: farrishj@xxxxxxxxx ("Jared Farrish")
- Date: Wed, 30 May 2007 17:39:23 -0500
On 5/30/07, Afan Pasalic <afan@xxxxxxxx> wrote:
email has to match "in total". sales@xxxxxxxxxxxx and info@xxxxxxxxxxxx
are NOT the same in my case.
thanks jared,
If you can match a person by their email, why not just SELECT by email only
(and return the persons information)?
Consider, as well, that each time you're calling a database, you're slowing
down the response of the page. So, while making a bunch of small calls might
not seem like that much, consider:
||||||| x |||||||
||||||| a |||||||
||||||| b |||||||
Versus
||||||| x, a, b |||||||
The letters represent the request/response data (what you're giving to get,
then get back), and the pipes (|) are the overhead to process, send, receive
(on DB), process (on DB), send (on DB), receive, process, return to code.
The overhead and latency used to complete one request makes it a quicker,
less "heavy" operation. If you did the first a couple hundred or thousand
times, I would bet your page would drag to a halt while it loads...
--
Jared Farrish
Intermediate Web Developer
Denton, Tx
Abraham Maslow: "If the only tool you have is a hammer, you tend to see
every problem as a nail." $$
- Follow-Ups:
- Re: [PHP] Re: find (matching) person in other table
- From: Afan Pasalic
- Re: [PHP] Re: find (matching) person in other table
- References:
- Re: find (matching) person in other table
- From: "Jared Farrish"
- Re: [PHP] Re: find (matching) person in other table
- From: Afan Pasalic
- Re: [PHP] Re: find (matching) person in other table
- From: "Jared Farrish"
- Re: [PHP] Re: find (matching) person in other table
- From: Afan Pasalic
- Re: find (matching) person in other table
- Prev by Date: Re: [PHP] Re: find (matching) person in other table
- Next by Date: Re: [PHP] Re: Re: preg_match() returns false but no documentation why
- Previous by thread: Re: [PHP] Re: find (matching) person in other table
- Next by thread: Re: [PHP] Re: find (matching) person in other table
- Index(es):
Relevant Pages
|