26 Jan
2011
26 Jan
'11
7:57 p.m.
Ah, fair enough, good way to ensure sites don't gradually slow down as they grow. Looks like D7 includes a variable to specify a different limit so thats pretty cool too. Thanks for pointing the hard coded limit out Bob On Wed, Jan 26, 2011 at 11:35 AM, Earl Miles <merlin@logrus.com> wrote:
On 1/26/2011 10:23 AM, bob brazeau wrote:
$result = db_query_range($sql, $args, 0, variable_get('feed_default_items', 10));
This function will fetch 10 items or the number of items specified in the variable only. It will not fetch all items. This is more or less a safety mechanism. If you have 1 million items in your database, this would crush your site every time it is visited.