Handling a huge amount of $wpdb->get_results data
-
Hi,
Have a $wpdb->get_results call like this:
$currentProductsArray = array();
$currentProducts = $wpdb->get_results(“SELECT id, feedid, size, price FROM products WHERE shopid = $shopid”);Everything is fine if a shop just have a few thousand products, but some shops have 100,000+ products => the array gets huge and causes the script to crash.
Anyone got an idea for saving the results of $wpdb->get_results in a smaller data structure than the standard PHP array?
Thanks,
Mads
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Handling a huge amount of $wpdb->get_results data’ is closed to new replies.