Database rows created even if the custom field is empty
-
Hi there,
We’ve just started using the CCTM for building a new CMS based around WordPress and so far it’s been working beautifully (especially the relation feature for fields), but there’s been a discussion about the way the CCTM handles empty custom fields.
Basically, say you create a new content type called News with two custom text fields for it, Event and Location.
If you add a News post, but don’t enter a value for Event and Location, the postmeta table will still be populated with two new rows for the respective post… one for Event and one for Location. The meta_value of which will obviously be empty, because no data was entered.
The question is: when we’re talking about thousands of News that don’t have data for one field (or even both), won’t these extra “empty value” rows add needless overhead to the table itself and everything that relates to it? (say, the Search).
And if so, isn’t there a way to stop the CCTM from creating these rows if the custom field is empty when you first add the content type?
http://wordpress.org/extend/plugins/custom-content-type-manager/
The topic ‘Database rows created even if the custom field is empty’ is closed to new replies.