Tag Archives: database

Snippet: Display DB Queries, Time Spent and Memory Consumption

If you want to enable profiling inside your wordpress website to check db queries, and memory consumption then below code is just right for you

Snippet: Set maximum number of post revisions to avoid DB overhead

Revisions are stored as separate posts, the more revisions the more space they will take inside database. To avoid this database overhead there is a constant inside config file for maximum revisions.