By mondrake on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.3.x
Introduced in version:
9.3.0
Issue links:
Description:
This change record is out of date, Connection::queryTemporary() has been re-instated in Drupal 10
The method Drupal\Core\Database\Connection::queryTemporary() and the internal method Drupal\Core\Database\Connection::generateTemporaryTableName() are deprecated. They are not used in core and has very limited use in contributed and custom modules. Therefore there is no replacement functionality added. Core would like to remove the per table prefixing in Drupal 10 and this temporary table functionality is preventing that.
Impacts:
Module developers
Comments
Hi, I understand the need to
Hi, I understand the need to deprecate certain things, but I also think "has very limited use in contributed and custom modules" is relative. We use it and kinda need it. We have some queries which require temporary tables otherwise they would never run within production constraints. Using a temp table means a result in a couple of seconds, without it we have a query which would take minutes. I don't mind things being deprecated and changed but completely dropping the functionality leaves people without a solution.
Could it not be moved to a contrib module at least? It could have a disclaimer that only certain database engines support it...
just fyi queryTemporary has
just fyi queryTemporary has been re-instated in Drupal 10, see https://www.drupal.org/project/drupal/issues/3312641