Project

General

Profile

Actions

Feature #79438

closed

Add the possibility to disable checkStoredRecord

Added by Thomas Hohn over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
DataHandler aka TCEmain
Target version:
Start date:
2017-01-24
Due date:
% Done:

100%

Estimated time:
PHP Version:
7.0
Tags:
Complexity:
Sprint Focus:

Description

This request has the aim to make in possible to disable the call to checkStoredRecord
when Insert/Updates are performed by the Datahandler.

As default the following configuration has been add to

$GLOBALS['TYPO3_CONF_VARS']['BE']

'checkStoredRecords' => [
            'enable' => true,
            'checkStoredRecordsLoose' => true
],


This ensures that the original functionality is kept as today. If enable is set to false
the checkStoredRecord is NOT called on insert/updates and might lead to truncated
data in the database depending on the configuration of the database.
However a speed-up of a factor 2 can be achieved - and especially in the scenario
where exists page-tree are copied this can give a significant speedup. Since the
checkStoredRecord has a side-effect of loading the record - there might be situations
where [NO-Title] is written as element title in sys_log. However this must be considered
as a small trade-off to the speed gained.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #101793: Remove DataHandler->checkStoredRecord()Closed2023-08-30

Actions
Actions

Also available in: Atom PDF