Hi Gurus
I am building my first ever PHP site. Should I worry about speed?
These are the parameters of my site
- MySQL database with about 500 records (about 50 fields each) and a couple
of small related tables
- about two or three visitors at the same time
- hosted on fast and large server in the US
Let me know what else I should consider and how/if I should tweak for speed.
TIA
- Nicolaas 4 1726
WindAndWaves wrote: Hi Gurus
I am building my first ever PHP site. Should I worry about speed?
These are the parameters of my site
- MySQL database with about 500 records (about 50 fields each) and a couple of small related tables - about two or three visitors at the same time - hosted on fast and large server in the US
For something like that speed won't be that big of a concern, anything
you do will probably be fast enough. Obviosuly it never hurts to
consider speed and always try and make things as fast as you can, but if
you find yourself trying to do something that will be fast and cannot
manage to get it working, don't hesitate to consider doing it a slower,
yet easier way. It would probably take some extreamly bad code to make
the site slow enough to notice any problems with a setup like that.
"kicken" <sl***@aoeex.com> wrote in message
news:ie********************@bresnan.com... WindAndWaves wrote: Hi Gurus
I am building my first ever PHP site. Should I worry about speed?
These are the parameters of my site
- MySQL database with about 500 records (about 50 fields each) and a
couple of small related tables - about two or three visitors at the same time - hosted on fast and large server in the US
For something like that speed won't be that big of a concern, anything you do will probably be fast enough. Obviosuly it never hurts to consider speed and always try and make things as fast as you can, but if you find yourself trying to do something that will be fast and cannot manage to get it working, don't hesitate to consider doing it a slower, yet easier way. It would probably take some extreamly bad code to make the site slow enough to notice any problems with a setup like that.
Ok, thank you.
The reason I asked was that the site I am working with searches text fields
rather than ID numbers, but I guess it is nothing really to worry about.
WindAndWaves wrote: Hi Gurus
I am building my first ever PHP site. Should I worry about speed?
These are the parameters of my site
- MySQL database with about 500 records (about 50 fields each) and a couple of small related tables - about two or three visitors at the same time - hosted on fast and large server in the US
Let me know what else I should consider and how/if I should tweak for speed.
Hi Nicolaas,
You probably don't have to worry.
PHP is very fast and your database very small.
But of course, it all depends on what you do.
If you have 500 records with 50 fields, and you are doing some very
complicated itterated math stuff over all the fields, things will be slow.
However, if you just search some fields, and make some joins, that will be
done very quickly.
So it all depends...
Very stupid but true advise: Just test it. :-)
I also agree with Kicken's response: Try to make your code fast, but if you
get stuck: simplify (and slower) your code.
Clear, good understandable code is more important than speed in my humble
opinion, especially when you are new to PHP/databases.
Just make sure that you know what you are doing, maybe after that start
worrying about speed.
Regards,
Erwin Moller TIA
- Nicolaas
"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:41**********************@news.xs4all.nl... WindAndWaves wrote:
Hi Gurus
I am building my first ever PHP site. Should I worry about speed?
These are the parameters of my site
- MySQL database with about 500 records (about 50 fields each) and a couple of small related tables - about two or three visitors at the same time - hosted on fast and large server in the US
Let me know what else I should consider and how/if I should tweak for speed. Hi Nicolaas,
You probably don't have to worry. PHP is very fast and your database very small.
But of course, it all depends on what you do. If you have 500 records with 50 fields, and you are doing some very complicated itterated math stuff over all the fields, things will be slow.
However, if you just search some fields, and make some joins, that will be done very quickly.
So it all depends...
Very stupid but true advise: Just test it. :-)
I also agree with Kicken's response: Try to make your code fast, but if
you get stuck: simplify (and slower) your code. Clear, good understandable code is more important than speed in my humble opinion, especially when you are new to PHP/databases. Just make sure that you know what you are doing, maybe after that start worrying about speed.
Regards, Erwin Moller
Yep, I think you are right... I am just a bit anorexic when it comes to code
and the like - so I started to worry about it, now I am just trying to write
simple codes - the less lines the better....keeping it simple.
Thank you for your info
- Nicolaas This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Yang Li Ke |
last post by:
Hi guys,
Is it possible to know the internet speed of the visitors with php?
Thanx
--
Yang
|
by: Rob Ristroph |
last post by:
I have tried out PHP 5 for the first time (with assistance from this
group -- thanks!).
The people I was working with have a site that uses lots of php
objects. They are having problems with...
|
by: Jacek Generowicz |
last post by:
I have a program in which I make very good use of a memoizer:
def memoize(callable):
cache = {}
def proxy(*args):
try: return cache
except KeyError: return cache.setdefault(args,...
|
by: Maboroshi |
last post by:
Hi I am fairly new to programming but not as such that I am a total beginner
From what I understand C and C++ are faster languages than Python. Is this
because of Pythons ability to operate on...
|
by: Neuruss |
last post by:
It seems there are quite a few projects aimed to improve Python's
speed and, therefore, eliminate its main limitation for mainstream
acceptance.
I just wonder what do you all think?
Will Python...
|
by: YAZ |
last post by:
Hello,
I have a dll which do some number crunching. Performances (execution
speed) are very important in my application. I use VC6 to compile the
DLL.
A friend of mine told me that in Visual...
|
by: Ham |
last post by:
Yeah,
Gotto work with my VB.Net graphic application for days, do any possible type
of code optimization, check for unhandled errors and finally come up with
sth that can't process 2D graphics and...
|
by: Jassim Rahma |
last post by:
I want to detect the internet speed using C# to show the user on what speed
he's connecting to internet?
|
by: kyosohma |
last post by:
Hi,
We use a script here at work that runs whenever someone logs into
their machine that logs various bits of information to a database. One
of those bits is the CPU's model and speed. While...
|
by: nestle |
last post by:
I have DSL with a download speed of 32MB/s and an upload speed of 8MB/s(according to my ISP), and I am using a router. My upload speed is always between 8MB/s and 9MB/s(which is above the max upload...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |