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 1750
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.co m> wrote in message
news:ie******** ************@br esnan.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************ *************** *************** @spamyourself.c om> 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....keepi ng 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 speed. They had a vague idea
that PHP5 has improved handling of objects over PHP4, so it would
probably be faster also.
In fact it seems slower. We did a few timing loops, in which a a
number of objects were created and and members were...
|
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, callable(*args))
return proxy
which, is functionally equivalent to
|
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 almost any operating system? Or is
there many other reasons why?
I understand there is ansi/iso C and C++ and that ANSI/ISO Code will work on
any system
If this is the reason why, than why don't developers create specific Python
Distrubutions...
|
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 (and dynamic languages in general) be someday close to
compiled languages speed?
What will be the future of Psyco, Pypy, Starkiller, Ironpython and all
the other projects currently on development?
| |
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 studio 2003 .net optimization
were enhanced and that i must gain in performance if I switch to VS
2003 or intel compiler. So I send him the project and he returned a
compiled DLL with VS 2003.
Result : the VS 2003 compiled Dll is slower than the VC6...
|
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 photos at an acceptable speed. I have
heard things about the virtual machine of Mr. Net, that it can run my app at
a high speed....but could never compare it with Java VM and its speed. Then,
what should i do? Go and learn C++ ? Do i have time for...
|
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 this works in 95% of
the time, we have some fringe cases where the only thing returned is
the processor name. We use this data to help us decide which PCs need
to be updated, so it would be nice to have the processor speed in all
cases.
|
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 speed), ALWAYS. However, my download speed doesn't go over 25MB/s. And when my brother turns on the internet from his computer and takes up half the download/upload speeds (routers automatically split the speeds in two when two computers are using...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |