title: Is there a way to insert a huge number of values into MySql in intervals?
body: <p>I am currently importing a Drupal blog into Wordpress, and there are a lot of pages and blog posts to import.  When I run the query it says it doesn't have sufficient memory or crashes.  I can run the query piece by piece using <code>LIMIT</code>, but I'm wondering if there is some smarter way to do the equivalent.  </p>
  
  <p>Either by running a for loop to insert a certain number of values at a time, or a callback function to execute the query after the query has been executed... I'm not sure.  Is there already a "best practice" way to do this? </p>