- π¨πSwitzerland berdir Switzerland
To add to that, even when just looking at the isolated performance of ChainedFastBackend, an all-miss situation looks like this:
So writing back the cache entries only takes 25% of the time, so we save ~90% of 25%.
Here's an attempt at a better issue title that reflects what it is actually about.
One thing to keep in mind is also that this change is quite tricky to apply on a site, adding or removing the patch or updating if it were to be committed with any existing caches is not be handled and probably should be.
- Status changed to Needs work
almost 2 years ago 11:23pm 18 February 2023 - πΊπΈUnited States smustgrave
#29 requested an issue summary update so moving to NW for that.
- Merge request !8524Issue #3014521 by IT-Cru, _utsavsharma, Fabianx: Improve fast-backend write... β (Open) created by IT-Cru
- π©πͺGermany IT-Cru Munich
Role back of patch from #26 as MR to apply against 11.x and 10.3.x again.
One kernel and some functional unit tests are failing in Gitlab CI jobs now, but I have no clue why this wasn't previously the case. So I think this needs some more investigations.
- π―π΄Jordan Qusai Taha Amman
Re-roll the patch to make it working with 10.3.2
- πΊπΈUnited States SocialNicheGuru
I was migrating a site from Drupal 10 to Drupal 10.3.
I applied the patch in composer.json:
"Improve fast-backend write performance of ChainedFastBackend by serializing upfront":" https://www.drupal.org/files/issues/2024-09-01/3014521-34.patch β ",I received the following error:
Drush command terminated abnormally due to an unrecoverable error. Error: Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in drupal-10.3.x/html/core/lib/Drupal/Core/Cache/ChainedFastBackend.php:174 Stack trace:
#0 drupal-10.3.x/html/core/lib/Drupal/Core/Cache/ChainedFastBackend.php(174): unserialize()
#1 drupal-10.3.x/html/core/lib/Drupal/Core/Config/CachedStorage.php(87): Drupal\Core\Cache\ChainedFastBackend->getMultiple()
#2 drupal-10.3.x/html/core/lib/Drupal/Core/Config/ConfigFactory.php(165): Drupal\Core\Config\CachedStorage->readMultiple()
#3 drupal-10.3.x/html/core/lib/Drupal/Core/Config/ConfigFactory.php(104): Drupal\Core\Config\ConfigFactory->doLoadMultiple()
#4 drupal-10.3.x/html/core/lib/Drupal/Core/Config/ConfigFactory.php(89): Drupal\Core\Config\ConfigFactory->doGet()
#5 drupal-10.3.x/html/core/lib/Drupal.php(414): Drupal\Core\Config\ConfigFactory->get()
#6 drupal-10.3.x/html/core/includes/errors.inc(323): Drupal::config()
#7 drupal-10.3.x/html/core/includes/errors.inc(123): _drupal_get_error_level()
#8 drupal-10.3.x/html/core/includes/bootstrap.inc(204): error_displayable()
#9 drupal-10.3.x/html/core/includes/bootstrap.inc(188): _drupal_exception_handler_additional()
#10 [internal function]: _drupal_exception_handler()
#11 {main} thrown in drupal-10.3.x/html/core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 174