From b11f953a1ddd3d66a65ef351bc8a4a2c4a8c92f3 Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Thu, 7 Jul 2011 14:27:49 -0400
Subject: [PATCH] Document limited array argument length in node_delete_multiple() function.

---
 modules/node/node.module |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/node/node.module b/modules/node/node.module
index 8476970203c6aeeae6d4e5348465d796d775bef8..460fbdb26c780b9ee8464a10f1cb09f9e0f87009 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1188,6 +1188,12 @@ function node_delete($nid) {
 /**
  * Delete multiple nodes.
  *
+ * The nodes are first loaded into memory via node_load_multiple() before being
+ * deleted. Since the query builder tries to load all the nodes into memory in
+ * a single query, the length of the argument array should be limited to avoid
+ * errors due to excessive query length, too many placeholders, or lack of
+ * physical RAM.
+ *
  * @param $nids
  *   An array of node IDs.
  */
-- 
1.7.4.1

