[TYPO3-core] RFC #17693 performace of cachingframework: alternative dbbackend

Bjoern Pedersen bjoern.pedersen at frm2.tum.de
Wed Feb 23 14:15:41 CET 2011


Hi,

This is a SVN patch request.

Type: Performance

BT reference: http://bugs.typo3.org/view.php?id=17693
Branches: trunk

Problem:
as dicussed in some length on the typo3-dev mailing list,
the cachingframework is not optimized with respect to query indices.

this patch provides an alternative db_backend with expires-column and
indices for better db usage.

Solution:
this patch provides an alternative db_backend with expires-column and
indices for better db usage.
I have choosen a second cache_be class, as otherwise extension using CF
would break due to different table layout.

How to test:
a) cache working
b) in mysql:


mysql> explain extended select * from cachingframework_cache_pages where
 expires>=now();
+----+-------------+------------------------------+-------+---------------+---------+---------+------+------+----------+-------------+
| id | select_type | table                        | type  |
possible_keys | key     | key_len | ref  | rows | filtered | Extra       |
+----+-------------+------------------------------+-------+---------------+---------+---------+------+------+----------+-------------+
|  1 | SIMPLE      | cachingframework_cache_pages | range | expires
  | expires | 4       | NULL |    1 |   100.00 | Using where |
+----+-------------+------------------------------+-------+---------------+---------+---------+------+------+----------+-------------+
1 row in set, 1 warning (0.12 sec)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cache_be_db.patch
Type: text/x-patch
Size: 18474 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110223/5ab47be4/attachment-0001.bin>


More information about the TYPO3-team-core mailing list