Reply to Saving MySQL results (like past month statistics)

Your name:

Reply:


Posted by Sιbastien on 03/14/06 05:23

Hi,

I have statistics on sales from several past months and years.
Well actually all I have is my MysQL data tables, with datetime fields
and corss references.

So when I want to get the gross for sales in January 2006, I do a MySQL
query, via PHP.

But I will regularly want to check on the same figures for different
months, and these figures won't change since the month is closed, so I'm
starting to think it doesn't make a whole lot of sense always querying
the DB when my results are pretty much static.

I'm prety sure this is a very common problem, so I'd like to know the
bet approach, if any. I can think of a few, like saving the results to a
file, if I'm querying a past month, and then query the DB only if said
results haven't been stored to file...

But I'd like real professionals' points of views. Does it even make
sense to "save" on queries like that?


SΓ©bastien

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация