Skip to content


  1. superdba at large
    December 18, 2019 @ 4:59 pm

    would you comment how you would deal with database tables without primary keys? there seems to be a lot of such tables in wordpress.
    this seems to be a design defect of wordpress – since all databases should have a primary key for performance and identification purpose


    • Dave H.
      December 19, 2019 @ 6:28 pm

      Either add a primary key to tables where a PK doesn’t exist or don’t use strict mode. It’s extra tables created by plugins that are the culprit here, and almost always there’s an obvious primary key that can be added and if not then a composite primary key can be created which guarantees uniqueness.


Leave a Reply

Your email address will not be published. Required fields are marked *