• 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?

  • The topic ‘Many database queries versus an array’ is closed to new replies.