Re: [PHP-DB] using POST data for a readfile

2005-04-13 Thread Andrés G . Montañez
 I didn't mean to offend or say your way was wrong.  I was just offering
 an alternative method.

Oh no, you didn't offended me in anyway!
I was saying that my example should not be used, because it do not work.

-- 
Atte, Andrés G. Montañez
Técnico en Redes y Telecomunicaciones
Montevideo - Uruguay

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] MySQL SQL CACHE

2005-04-13 Thread Joe Harman
Hello,
 First time on this list, I generally use the general PHP list... but I was 
curious if alot of people are using SQL CACHE with MySQL and PHP and 
does it seem to increase the performance... or lighten the load on mysql for 
you?
 Thanks
Joe


Re: [PHP-DB] using POST data for a readfile

2005-04-13 Thread mel list_php
Thank you very much!
Here is the winner (actually a mix of both!)
form name=downloads method=post action=./callFile.php
input type=hidden name='dlId_to_dl' value=1
a href=javascript:document.downloads.submit();download test.pdf/a
/form
and in the callFile I have a switch on dlId_to_dl.
I didn't get the base tag though, what does that mean?

From: Andrés G. Montañez [EMAIL PROTECTED]
Reply-To: Andrés G. Montañez [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: Re: [PHP-DB] using POST data for a readfile
Date: Wed, 13 Apr 2005 12:09:06 -0300
 I didn't mean to offend or say your way was wrong.  I was just offering
 an alternative method.
Oh no, you didn't offended me in anyway!
I was saying that my example should not be used, because it do not work.
--
Atte, Andrés G. Montañez
Técnico en Redes y Telecomunicaciones
Montevideo - Uruguay
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] using POST data for a readfile

2005-04-13 Thread Martin Norland
mel list_php wrote:
Thank you very much!
[snip]
I didn't get the base tag though, what does that mean?
It was merely a cautionary warning about sites that force a base href 
for relative URIs (including, of course, URLs)

See: http://www.w3.org/TR/html4/struct/links.html#h-12.4
cheers,
--
- Martin Norland, Sys Admin / Database / Web Developer, International 
Outreach x3257
The opinion(s) contained within this email do not necessarily represent 
those of St. Jude Children's Research Hospital.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] mysql query plan

2005-04-13 Thread Eddie Peloke
Hello,

We are working to optimize a few queries.  When we run the query with
Explain, it appears that the query optimizer is not using one of the
tables index and doing a full table scan while it appears to use other
tables' indices properly.  We then remove the table with the full
scan, run again with Explain and now the optimizer seems to ignore the
index of one of the other tables when it correctly used that table's
index before in the previous run.  Anyone have some good insight into
how the optimizer picks it's query plan?  It seems to pick one table
and ignore the index for some reason.

Thanks!

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] mysql query plan

2005-04-13 Thread Bastien Koert
is there a join in the sql? Joins can be tricky since the order of the joins 
can determine the number of records selected from each table. If the joins 
result in a larger table joining with a smaller table, it could result in 
more than 30% of the rows being selected and the optimizer will ignore the 
index. Try moving the order of the records around.

You may even want to split the query into pieces and let the application 
logic handle the resultsets. I had to do this with a long running query that 
produced 100 records for export (4+ minutes  in a web environment). By 
splitting the 5 table join into 3 queries and application based arrays, I 
reduced the run time to about 10 seconds with 50x the output.

Bastien

From: Eddie Peloke [EMAIL PROTECTED]
Reply-To: Eddie Peloke [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] mysql query plan
Date: Wed, 13 Apr 2005 15:42:41 -0400
Hello,
We are working to optimize a few queries.  When we run the query with
Explain, it appears that the query optimizer is not using one of the
tables index and doing a full table scan while it appears to use other
tables' indices properly.  We then remove the table with the full
scan, run again with Explain and now the optimizer seems to ignore the
index of one of the other tables when it correctly used that table's
index before in the previous run.  Anyone have some good insight into
how the optimizer picks it's query plan?  It seems to pick one table
and ignore the index for some reason.
Thanks!
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php