I have some suggestions for you:
- 1, create MySQL insert queries on your own.
- 2, combine multiple insert values queries into one like
values(1,2,3),(4,5,6) - 3, use
$wpdb->query
then
you need to figure out what the appropriate number of “multiple” is.
I’ve tried with 100 and it worked for me but I think the number varies on server settings.
Related Posts:
- How to delete all records from or empty a custom database table?
- dbDelta only creates the last table
- Is their any way to Extend WPDB class and Overwrite the Default Query Function
- Stackoverflow type of badge plugin giving warnings in WordPress 3.5
- Missing argument 2 for wpdb::prepare() Issue
- ob_end_flush error when using wpdb in plugin
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- post_content getting cut off on blank space on $wpdb->update
- Why am i getting this error? WordPress database error: [Query was empty]
- plugin ajax to external php file always return null
- When to call add_filter
- Doubt using $wpbd->get_col for a single column
- Access WordPress database outside of WordPress
- Correct way to perform non-cacheable DB query
- Help With MySQL to WPDB Query Conversion
- Creating mySQL procedure with $wpdb
- Problem with creating tables for Plugin
- Change commission_status paid when withdraw_status vendor is completed
- $wpdb->get_row returns column name instead of column value
- Create a table with wordpress plugin boilerplate
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- Object method calling for global $wpdb in header.php
- Using wpdb without loading all plug-ins via wp-load.php
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- How to insert multiple postmeta values with one query?
- Cannot get wpdb data (Error in a simple fuction) [closed]
- WPDB: Update table
- Issue running db create table query from static method
- $wpdb update query in plugin only updating one column
- Mowing site to another domain in simplest way
- Store plugin page content in wp_options?
- Displaying data from another database
- Using $wpdb in a plugin, what sort of data does it return?
- How to access the WordPress DB from a plugin file
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Linked pages from plugin on front can’t see $wpdb
- Need help creating asynchronous data scraper in WordPress
- ob_end_flush(): failed to send buffer of zlib output compression (0) in external php
- How to fetch WordPress database values in JavaScript widget
- $wpdb->delete not working for me
- any word search WordPress
- How to securely controlling data without keeping it in postmeta?
- Using id to show item
- No result after wpdb->insert
- How to fix slow comment query?
- Write mysql credentials in plugin
- Action hook “wp_insert_post” works but not for last imported post
- Proper way to trigger a MySQL query via link in a plugin
- get_var result empty for query of custom table in plugin admin
- Making plugin to use different table prefix cause permission problem
- Is it safe to increase/alter the size of the wp_post.guid column from VARCHAR(255) to VARCHAR(2048)?
- Get all the related data from WordPress DB
- $wpdb selects wrong database
- How to dispaly post informations (such as titles) in an admin plugin menu page?
- FATAL ERROR: WP complains about redeclaration [closed]
- How to check record is exist or not in WordPress CRUD Operation with $wpdb
- Create tabs inside Plugins Admin Page [closed]
- Allowing Two Developers Access to a Plugin on the WordPress.org Plugin Repository?
- WordPress wp-json API – Custom Post Type returns 403
- Add .html extension to custom post type taxonomies
- Translate wordpress plugin [closed]
- Styles and Scripts, Selectively enqueue across entire site
- Nested shortcodes
- Exclude custom post_type in sitemap generation?
- Removing WordPress Plugin Menu Item for a specific user
- How can I use RDFa with WordPress?
- How to add an attribute to the body tag with a plugin?
- What function can I use consistently to escape possible HTML for editing and display?
- How can I make uploaded images in the editor load with HTTPS?
- Ultimate Member: Redirecting after registration
- how to create site exit messages with destination url displayed
- Magazine subscription sales through WP?
- Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes
- Ctrl+V images from clipboard into wordpress editor
- Custom post types – remove default post supports through empty array?
- Release the plugin in the WordPress repository where redux is used
- Ajax object not defined – JS file is in plugin folder
- Is there a good way to load tiny_mce_popup.js through editor.windowManager.open?
- I/O Usage goes max. just after every new post published and WP site down
- Personality quiz in wordpress using a plugin
- Adding custom post category to categories widget
- How to ignore fields if empty?
- Error messages in Multilingual part of the site
- WordPress how do I change images used in plugins?
- Add WooCommerce vendor slug to auto-generated SKU
- Admin Custom Login loses settings on Code and Data migration
- custom REST endpoint not passing body of POST request to callback
- How to hook into search results template or query?
- How can I insert a record into a custom table from my custom form in my custom admin page?
- how to create table during plugin installation in side a class
- Why function hooked using object are executing at all time?
- Create a blank admin page from plugin
- Private WordPress blog, requires user registration approval, and allowing users to login with OpenID
- Which part of the plugin to change so the updater won’t register the next version?
- Publish post facebook page & twitter automatically [closed]
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I display an attribute from each post inside foreach($latest_posts1 as $post )
- Wrong block appender button showing
- Check Plugins in Use by Mutli Site Network
- Plugin to transfer new/updated files from media library in “/wp-content/uploads/” between prod environment and preprod environment?