Efficient way to select random nodes

Author Message

Christian Johansen

Wednesday 21 June 2006 5:40:45 am

Has anyone got an efficient way to fetch random nodes? The way I'm doing it now is to fetch nodes and pipe it through to the shuffle operator. It works, sure, but often I end fetching ALOT more nodes than I actually need. Is there a simple way to select only the desired amount of nodes randomly from the database directly? Do I have to create som custom filter for this?

Łukasz Serwatka

Wednesday 21 June 2006 6:59:22 am

Hei,

This topic might be useful:
http://ez.no/community/forum/setup_design/how_to_fetch_random_content_3_8/re_how_to_fetch_random_content_3_8

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.