Contenu connexe
Plus de Webmontag MRN (20)
Performance Now! Was tun bei Besucherspitzen?
- 2. Ich Martin Reichard CEO & Head of Technology 28 Jahre alt Informatik: FH Gießen und Uni Karlsruhe reichard@lotum.de @Mart_out
- 10. Website langsam=> http://www.flickr.com/photos/72969187@N00/248272298/ http://www.flickr.com/photos/lynac/321100379/
- 15. kein purer Aktionismus (wie z.B. Micro-Optimierungen)http://www.flickr.com/photos/lifeontheedge/416514144/
- 21. Query-Optimierung: Indizes mysql> SELECT COUNT(*) FROM wm_tip WHERE Goals_Team1=1; +----------+ | count(*) | +----------+ | 1092778 | +----------+ 1 row in set (0.87 sec) mysql> EXPLAIN SELECT COUNT(*) FROM wm_tip WHERE Goals_Team1=1; +----+-------------+---------+------+------------------+------------------+---------+-------+---------+-------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+---------+------+------------------+------------------+---------+-------+---------+-------------+ | 1 | SIMPLE | wm_tip | ALL | NULL | NULL | NULL | NULL | 3029244 | Usingwhere | +----+-------------+---------+------+------------------+------------------+---------+-------+---------+-------------+ 1 row in set (0.02 sec)
- 23. Caching (z.B. mit memcache)$memcache = new Memcache; $memcache->connect('localhost', 11211); $memcache->set('key', $variable, false, 60); $get_result = $memcache->get('key');
- 29. einfach php.ini anpassensession.save_handler = memcachesession.save_path="<memcache_server>:11211?persistent=1&weight=1&timeout=1&retry_interval=15"