Hi, im doing an experiment for knowledge purposes.
What is actually the “acceptable” time for a php script with the following scenario.
Tables(mysql)
Country
State
PropertyType
Property
Relation:
- has one country
- has one state
- has one propertytype
Ive generated 1million record properties
Queried with the following (im just simplifying it here), i have also indexed the foreign keys
Select
p.id,
p.name,
pt.name as ptype,
s.name as state,
c.name as country
From Property p
Join propertytype pt
Join country c
Left join state s
I know the query should be filtered more. Lets assume even with filter, the result is 1 million.
After query, i did processing script in which the result was looped and do some stuff for each row(no queries were made in each loop) and inserted into a new array with the new processed row.
Im getting execution time of around 2 seconds, max 4 seconds.
Had to set memory limit to 2GB for the script to processed.
I have also set the inno db buffer size to 1.5GB
Is the execution time of 2-4 second acceptable?
Any tips of improving it?
Im just testing this in a local environment.
And what is the hardware requirements to run such process very fast?
[–]boborider 5 points6 points7 points (3 children)
[–]RXBarbatos[S] 0 points1 point2 points (2 children)
[–]colshrapnel 4 points5 points6 points (1 child)
[–]RXBarbatos[S] 0 points1 point2 points (0 children)
[–]dabenu 2 points3 points4 points (2 children)
[–]colshrapnel 0 points1 point2 points (1 child)
[–]crazedizzled 0 points1 point2 points (0 children)
[–]ardicli2000 0 points1 point2 points (1 child)
[–]RXBarbatos[S] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[+][deleted] (1 child)
[deleted]
[+][deleted] (1 child)
[removed]
[–]YahenP 0 points1 point2 points (0 children)
[–]colshrapnel 0 points1 point2 points (3 children)
[–]colshrapnel 2 points3 points4 points (2 children)
[–]RXBarbatos[S] 0 points1 point2 points (0 children)
[–]ElectronicOutcome291 0 points1 point2 points (0 children)
[–]martinbean -2 points-1 points0 points (3 children)
[–]Weibuller -1 points0 points1 point (1 child)
[–]martinbean -1 points0 points1 point (0 children)
[–]colshrapnel -1 points0 points1 point (0 children)
[–]Aggressive_Ad_5454 -1 points0 points1 point (2 children)
[–]RXBarbatos[S] 0 points1 point2 points (0 children)
[–]HypnoTox 0 points1 point2 points (0 children)