Hi!
I'm not into sql programming and I'm having trouble, I got a website where people can check their daily horoscope.
I got a table that contains:
ID (int autoincrement)
Sign (which containd the sign, gemini, taurus, etc)
Text (which contains the text for the sign)
aday (day number)
amonth (month number)
ayear (year number)
I call it thru this stored procedure:
CREATE PROCEDURE [astrodestino].[horoscopos] AS select *
from horoscopo where aday=day(getdate())
and amonth=month(getdate())
and ayear=year(getdate())
GO
When the user enters the site I will execute that stored procedure and I will show the 12 signs and text for that day.
I got 10000 queries per day and my hoting provider told me that its consuming upto 70% of microprocessor resources.
Suspecting that my hosting provider had a problem with his server a moved to other hosting provider and it will happen again.
Is there anyway I can optimize it to lower resource usage?
Im desperate!!
Thank you!
I'm not into sql programming and I'm having trouble, I got a website where people can check their daily horoscope.
I got a table that contains:
ID (int autoincrement)
Sign (which containd the sign, gemini, taurus, etc)
Text (which contains the text for the sign)
aday (day number)
amonth (month number)
ayear (year number)
I call it thru this stored procedure:
CREATE PROCEDURE [astrodestino].[horoscopos] AS select *
from horoscopo where aday=day(getdate())
and amonth=month(getdate())
and ayear=year(getdate())
GO
When the user enters the site I will execute that stored procedure and I will show the 12 signs and text for that day.
I got 10000 queries per day and my hoting provider told me that its consuming upto 70% of microprocessor resources.
Suspecting that my hosting provider had a problem with his server a moved to other hosting provider and it will happen again.
Is there anyway I can optimize it to lower resource usage?
Im desperate!!
Thank you!