Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

is using pods's own content tpye where custom fields are all stored in one table more scalable than custom fields of wordpress where each field is a row in the meta table...

I haven't used PODS yet but storing all fields in one table seems more scalable and easier to maintain?

what are the disadvantages of PODS (i don't see many people using it)? are the custom fields of pods indexable for the search engine?

share|improve this question
    
Your question is essentially "is one table better than one table" in current form?.. –  Rarst Apr 8 at 20:49

1 Answer 1

Pods allows you to create meta-based or table-based content types. Meta-based work as normal WP post types do. You can also extend WP objects like Comments, Users, Media, and Taxonomies to add custom fields to those.

If you choose to use table-based Pods, it creates a table with the ID field and only the custom fields that you define yourself. There are benefits that can be had by this, for cases where there's a lot of data that needs to be specifically queried and filtered against, where otherwise postmeta may be constricting based on hosting budgets or if you need to query against specific values often. Custom indexes can then be added by hand to any of the Pods tables which further improve performance based on the types of queries you prefer.

Table-based Pods have a few caveats, mainly being there is no WP_Query support for meta_query (yet, it's in progress), and when you use the default WP search, it won't search those fields' content. That doesn't stop you from being able to do things with it, like using the Pods API calls like http://pods.io/docs/code/pods/find/ which is pretty powerful on it's own. In many ways, it can be invaluable for complex queries and filtering, when compared to WP_Query.

Here's a couple more comparisons between how table-based Pods compare against the normal WP default meta-based content types:

share|improve this answer
    
is there a way to add the fields in the seperate pod table to the search of wp or even better to relevansi plugin? Which seems to be the best search plugin for wp –  yeahman Apr 9 at 4:29
    
Not yet, we're looking at all sorts of ideas for integration of table-based content with existing solutions. Currently the top contender is SearchWP support. –  Scott Kingsley Clark Apr 9 at 14:22
    
ah ok but searchWP is not free :( ... will look at relevanssi code ... it should be a too much of a problem adding fields from the seperate tables to the post's search indexes –  yeahman Apr 9 at 16:29
    
I have a question(where can i post questions for PODS?), is it possible to migrate and existing post type with meta fields to a seperate table later on or do i need to set up the seperate table right from the start? –  yeahman Apr 9 at 16:34
    

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.