Skip to content

6 articles

#MySQL

Every article tagged MySQL, newest first. Search all articles

  • A hand weighing two storage units: a tall cabinet of identical card drawers and a custom shelf with fitted, colour-coded compartments.Development

    8 min read

    WordPress custom tables vs custom post types for plugin data

    For a WordPress custom table vs custom post type decision, use a custom post type when your data behaves like editable WordPress content. Use a custom table when the data is high-volume, query-heavy, or needs typed columns and indexes that match your plugin's access patterns.

    • WordPress
    • Plugins
    • Database
    Read article
  • Small robotic carts carry order folders over a bridge from overflowing old filing cabinets into a bright, neatly indexed vault.Performance

    7 min read

    WooCommerce HPOS: migrate to High-Performance Order Storage safely

    WooCommerce HPOS moves core order data out of WordPress post storage into dedicated WooCommerce tables. Migrate safely by checking extension compatibility, synchronizing both data stores, verifying them, switching HPOS to authoritative, then testing every order workflow before you disable synchronization.

    • WooCommerce
    • Database
    • Performance
    Read article
  • Miniature builders add a new room to a lit, lived-in model house on scaffolding, the extension glowing on the blueprint below.Development

    5 min read

    WordPress plugin database migrations with dbDelta, done safely

    WordPress plugin database migrations should compare a stored schema version with the version your plugin expects, then run only the missing steps. Use dbDelta() for table creation and supported schema changes, and use explicit, guarded migrations for destructive or unsupported changes.

    • WordPress
    • Plugins
    • Database
    Read article
  • A robot librarian scans endless shelves book by book while a glowing card-index drawer sits unused beside a plan of the faster path.Performance

    8 min read

    How to find and fix slow WordPress database queries

    WordPress slow database queries are usually found by measuring the actual SQL, its execution time, and how often it runs before changing indexes or code.

    • WordPress
    • Database
    • MySQL
    Read article
  • A relay of messengers runs glowing parcels from a distant castle to a doorstep and stopwatch, while miners dig a shortcut tunnel below.Performance

    7 min read

    How to reduce WordPress TTFB: a diagnostic guide

    To reduce WordPress TTFB, measure the same request at each layer instead of tuning WordPress blindly. Separate DNS, connection and TLS time from time to first byte, compare CDN hits with origin requests, then profile PHP, database work and external calls on the slow path.

    • WordPress
    • TTFB
    • Performance
    Read article
  • An overstuffed backpack tips a scale into the red while glowing arrows move rarely used items onto a nearby shelf.Performance

    8 min read

    WordPress autoloaded options: measure and review wp_options

    WordPress autoloaded options are rows in wp_options that WordPress loads into the alloptions array during a normal request. Measure the core autoload set, identify the largest rows and their owners, then disable autoload only for options that are not needed broadly.

    • WordPress
    • wp_options
    • MySQL
    Read article