#36799 closed feature request (wontfix)
Extra field in wp_posts table
| Reported by: | selnomeria | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
I had an idea, if there was an extra column in wp_posts database table, so, i could save my different custom_fields into serialized string... so, there won't be a need for get_post_meta() queries, but only $post->extra_fields will include all info...
currently, i myself, use post_content_filtered for this job...
Change History (3)
#1
@
10 years ago
- Component General → Posts, Post Types
- Description modified (diff)
- Summary IDEA ! ! EXTRA-FIELD in WP_POSTS → Extra field in wp_posts table
#3
in reply to: ↑ 2
@
10 years ago
Replying to swissspidy:
hm.. Memcached?/ i have never heard it.. now i am reading a tutorial about it and YOU SHOULD TELL EVERYBODY about Memcached! very good stuff! thanks
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I don't really see a benefit of adding a new column to
wp_poststhat badly replicates the postmeta table.You can't really index such a column in a good way in the database and you also can't order by values in it. Additionally, post meta queries are cached, so performance is not a big concern there. Short, it's not useful.
I suggest you to add such a column yourself in your plugin if you really need it. If it's just for performance, you should look into implementing an object cache like Memcached or Redis.
It's not something we'd add in core at this point though.