I had a similar issue on another site recently, memory usage was through the roof. When I checked the db, wp_options was about 80megabytes. Running this SQL reduced the entire db to 15mb:
DELETE FROM `wp_options` WHERE `option_name` LIKE '%_transient_%'
Obviously, replace wp_ with your table prefix.
Related Posts:
- Multiple wp_options tables to share content across installs
- Does auto_load to ‘no’ in wp_options improve performance
- What structure and database storage method should I use for temporary storage that may be written concurrently?
- Will it break my site if I delete all transient records in wp_options table?
- Please explain how WordPress works with MySQL character set and collation at a low level
- What is the purpose of the option name hack_file in the options table?
- WordPress database scalability from the code perspective
- delete_option() and update_option() returning false
- How to change option recently_edited?
- Performance tips for a large user base [closed]
- store simple data in get_option()
- Transient RSS feeds in wp_options not removed automatically?
- WordPress for a very large website
- WordPress database becoming huge. How to analyze and optimize it? fear of running out of memory
- Improve or optimize a very slow query
- WooCommerce with thousands of products – site is very slow – optimize db queries? [closed]
- Long option names fail silently?
- save new data to wp_options non-post form
- Efficiency on displaying random authors based on large database
- How to solve slow WordPress site caused by attachment_metadata
- Huge wp_options table
- Cannot unserialize WordPress serialized values in `wp_options` table?
- Relationship between performance and database size
- WordPress DB: options-table –> 32 gzipcompression?
- Database slowdown after update to 3.4.1
- wp_options table has duplicate rows and primary key / autoincrement has been removed
- Help running a MySQL query to update all wp_#_options tables in a Multisite install
- What ALL can cause “Another update is currently in progress.”? [closed]
- wp_redirection_404 table has grown to 7GB
- Should I remove transients from the wp_options table?
- I don’t see site_url and home_url fields in wp_options table (phpMyAdmin)?
- Which is more efficient? Using usermeta, or creating a new MySQL table?
- Accidentally deleted active_plugins portion of the wp_options DB table
- One post carries 30 postmeta values, is this too much?
- batch UPDATE autoload value in wp_options table
- Improve performance by removing unnecessary database queries
- fastest replacement DB
- How to prevent/delay MySQL connections when an object cache is used?
- Is there an atomic way to update_option in WordPress (to ensure data integrity)?
- Check if an option exists and get its value in one hit
- How to combine multiple wp_insert_post into one in order to gain better performance
- My options table is huge. What can I do?
- Change options table prefix only
- When to use custom DB tables or add_option?
- In which format the data is stored in WordPress Databases?
- Automate WordPress website setup with prefilled data
- Optimizing function that automatically creates internal links based on post title string
- Image link issues after importing a database backup to my local web server
- Native timestamp on wp_options option
- Is there anyway to split posts to different databases?
- Whats the best practise on how to store json data from a custom settings page?
- Job and Employee Performance Tracking with Product Safety
- WordPress Settings API Overrides My Previous Value
- Get all top categories, then only 3 posts for each
- Best way to store 1 billion+ posts?
- Optimize WP site for millions of posts
- get_option() does unserialize and don’t remove \
- Counting user’s comments – efficient way?
- Performance bug – slow DB query
- I cannot change anything in my wordpress database from within wordpress?
- Mysql Queries per Visit – Crazy High
- Wrong url for the images while using same database for two WordPress installations
- Options table – where does my values go?
- Theme options not being sent to Database
- Is saving multiple options or saving multiple items in one option better?
- Multiple Address In WP-Option Value
- How do I use update_option to give me a new option name each time a form is submitted? [duplicate]
- What is an ORM, how does it work, and how should I use one? [closed]
- What is the difference between an ORM and an ODM?
- What is this JavaScript “require”?
- Rename a table in MySQL
- How should I tackle –secure-file-priv in MySQL?
- What is this JavaScript “require”?
- What is “Advanced” SQL?
- What’s the difference between identifying and non-identifying relationships?
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- What are the differences between B trees and B+ trees?
- MySQL SELECT increment counter
- How to resolve ORA-011033: ORACLE initialization or shutdown in progress
- Example of a strong and weak entity types
- Oracle SQL query for Date format
- phpMyAdmin – Error > Incorrect format parameter?
- Strange Characters in database text: Ã, Ã, ¢, â‚ €,
- Difference between partition key, composite key and clustering key in Cassandra?
- How SID is different from Service name in Oracle tnsnames.ora
- What is a relation in database terminology?
- Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user ‘root’@’localhost'(using password:YES)
- Database vs File system storage
- Can I have multiple primary keys in a single table?
- Exclude Statement in SQL
- How do you query for “is not null” in Mongo?
- What is a file based database?
- Is it fine to have foreign key as primary key?
- Storing Images in DB – Yea or Nay?
- Using wpdb to connect to a separate database
- how to Optimize WordPress database for 10 million post? [duplicate]
- MySQL Database User: Which Privileges are needed?
- Why is my database import losing text widget data?