Project

General

Profile

Actions

Bug #21533

closed

Caching Framework: Memcache backend set() is terrible slow if handling entries with many tags

Added by Christian Kuhn about 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Caching
Target version:
-
Start date:
2009-11-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The memcache Backend is very slow if entries with a lot of tags are handled.

Use case:
We have pages that need around 150 tags assigned to a page cache entry. cache->set() in tsfe takes around 3 seconds (!) to write the entry to memcache backend.
Most of this time is eaten up in t3lib_cache_backend_MemcachedBackend->addIdentifierToTags() where identifier<->tag entries are handled.

APC backend seems to use the same logic as memcached, so both are currently unusable if many tags are handled, dbbackend is much quicker in this case (but could be optimized in set() too, if it would INSERT all tag entries at once and not in a loop for each tag).

(issue imported from #M12562)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #21753: Provide an API to insert multiple rows at onceClosedChristian Kuhn2009-11-30

Actions
Actions

Also available in: Atom PDF