WordPress.org

Ready to get started?Download WordPress

Forums

Many database queries versus an array (1 post)

  1. gpaciga
    Member
    Posted 5 years ago #

    I'm developing a plugin which deals with relationships between the pages of my blog. Right now it's set up so that it queries the database getting all the data it needs, but it needs to do this at least a few dozen times to get all the info it needs.

    Is it better to query the database many times for specific pieces of data, or use something more general like get_results() to get a php array which will have all the data the function could possibly want?

Topic Closed

This topic has been closed to new replies.

About this Topic