postmeta or custom db tables for CPT data
-
Trying to decide if I should use the built in postmeta table or create my own table for CPT data.
I will be creating 2 CPTs, one is 59 fields, the other is 80-100.
Stuffing that into postmeta (either 1 per post_id in a GIANT array or one meta per fields) seems pretty crazy considering I want to be able to filter based on those meta fields.I see it is possible to filter based on meta fields (and even looks like it is possible both ways: http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters ).
Question is more about scaling. Goal is to have LOTS of posts so can easily seem the one row per meta causing the postmeta table to GROW out of control (1000 CPT posts would be 59,000 postmeta rows for one of the CPTs). I’m concerned the 1 meta per post_id with everything in an array option will be slow to filter.
I am leaning towards using the built in meta (as opposed to custom db tables) because using the built in functions seems cleaner, robust, tested, proven.
- The topic ‘postmeta or custom db tables for CPT data’ is closed to new replies.