Related Content
DrupalCamp Scotland 2024
DrupalCamp Scotland returned after a small hiatus of 5 years on the 25th October 2024 and saw nearly 50 people attend the university of Edinburgh Paterson's Land building for a day of talks and sessions.
Drupal 11: Batch Operations Built Into Drupal
This is the sixth article in a series of articles about the Batch API in Drupal. The Batch API is a system in Drupal that allows data to be processed in small chunks in order to prevent timeout errors or memory problems.
Drupal 11: Adding Operations To Running Batches
This is the fifth article in a series of articles about the Batch API in Drupal. The Batch API is a system in Drupal that allows data to be processed in small chunks in order to prevent timeout errors or memory problems.
Drupal 11: Using The Batch API To Process CSV Files
This is the fourth article in a series of articles about the Batch API in Drupal. The Batch API is a system in Drupal that allows data to be processed in small chunks in order to prevent timeout errors or memory problems.
Drupal 11: Using The Finished State In Batch Processing
This is the third article in a series of articles about the Batch API in Drupal. The Batch API is a system in Drupal that allows data to be processed in small chunks in order to prevent timeout errors or memory problems.
Drupal 11: Batch Processing Using Drush
This is the second part of a series of articles looking at the Batch API in Drupal. The Batch API is a system in Drupal that allows data to be processed in small chunks in order to prevent timeout errors or memory problems.
Comments
Thanks Phillip. You just helped me shave 0.5 GB off a database.
For anyone using phpMyadmin to run the SQL, the format is:
Delete `field_data_comment_body`.*
FROM `field_data_comment_body`LEFT JOIN comment ON field_data_comment_body.entity_id = comment.cid
WHERE comment.cid IS NULL
DELETE `field_revision_comment_body`.*
FROM `field_revision_comment_body`
LEFT JOIN `comment` ON field_revision_comment_body.entity_id = comment.cid
WHERE comment.cid IS NULL
Submitted by Mikesnp on Fri, 03/21/2014 - 20:22
PermalinkSubmitted by Roxane on Sat, 05/31/2014 - 15:45
PermalinkSubmitted by Valentin on Thu, 01/29/2015 - 15:03
PermalinkSubmitted by zyvervenz on Mon, 02/29/2016 - 09:59
PermalinkAdd new comment