Forums

Performance Questions (2 posts)

  1. jeremib
    Member
    Posted 2 years ago #

    In my index.php I have:

    query_posts('cat=32&showposts=15');
    while (have_posts()) : the_post();
    ....
    the_content('Read More');
    ....
    endwhile;

    When I call the_content, the_title, etc, does it hit the database to get that one field? Or does it hit the database once for every post in the_post, or does it get the query results all at once in query_posts?

    Thanks

  2. jeremib
    Member
    Posted 2 years ago #

    I'm trying to determine the most efficient way to load posts in mass, 50 to be exact.

Topic Closed

This topic has been closed to new replies.

About this Topic