How to use custom database tables for custom post types?

My educated guess you will drown in edge cases, exploding in your face, if you try to shard specific post type in separate table.

Since you seem to be actually concerned with meta rather than posts themselves, you could:

  • implement custom table for it
  • use Metadata API to store it in separate table, while retaining some degree of API compatibility.

Leave a Comment