Monday, February 9, 2009

Does Masterbation Trigger Herpes Outbreaks?

Disabling the "reading layout" or "preview" in Word

Vale: you have your web subversion and deploys a system for production . What do you need
now? A DEBUG! You have to see how long it takes to load the page. Less than half a second is good and less than one second is reasonable ... if it takes more, see where it fails. Put
counters using microtime () on various items on $ timer ['point of interest 1'] = (( float) $ usec + (float) $ sec);



Rewrite or parts of the code caches take longer
and records the time it takes for each query MySQL. If you see that slow query using EXPLAIN to see why they are slow. If you can not optimize and repeat often, make sure your MySQL server is activated query_cache (
SHOW VARIABLES LIKE 'query_cache_size';
must be> 0).

If you are not active, use SET GLOBAL
query_cache_size = 524288;
to activate. I've put 512 MB of RAM allocated to the query cache: if you have a dedicated server you do not know if this is INCREDIBLE :-)
the effect this has on performance.
EYE! to do any ALTER, INSERT or UPDATE of the table cache is lost. So if you used a field "hits" to record hits on web pages or similar, you're normalizing it and putting it into another table separately.

0 comments:

Post a Comment