FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Speeding up of php page
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Speeding up of php page [message #178974 is a reply to message #178943] Tue, 28 August 2012 16:33 Go to previous message
houghi is currently offline  houghi
Messages: 45
Registered: September 2011
Karma:
Member
Norman Peelman wrote:
> Ok, understandable that you are learning... :) Basically with your
> code you are asking the database for all the quote id(s) where the movie
> id is a match to your movie, and then saving it to an array ($result).
> Might as well grab all the data you're after while you're there the
> first time, which is what my code should do.

Clear. I will see what I can do to get the same results. Learning can be
fun. :-D

>> Thanks. phpMyAdmin tells me about quotes:
>> ~69,655 total, Query took 0.0003 sec
>>
>
> Is this after you created indexes on tconst and qconst? Without those
> indexes your times will get significantly worst as you db gets bigger.

After. See a reply to an other poster. Increase was (as expected) 100
times measured on the php page itself.

> Search for 'database normalization'.

Thanks.

houghi
--
This is written under the inluence of the following:
> Artist : Mercedes Sosa
> Song : Cuando ya me Empiece a Quedar Solo
> Album : Mercedes Sosa en Argentina
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Database Abstraction Layer
Next Topic: Using SQLite3 on 1&1 or elsewhere that does not have it installed
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 02:27:07 GMT 2024

Total time taken to generate the page: 0.04267 seconds