[wp-trac] [WordPress Trac] #23061: get_post_meta() on post with large amount of meta keys uses too much memory
WordPress Trac
noreply at wordpress.org
Thu Dec 27 14:28:25 UTC 2012
#23061: get_post_meta() on post with large amount of meta keys uses too much memory
-------------------------+------------------------------
Reporter: joehoyle | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by wonderboymusic):
get_post_meta is a bad choice here, you should probably be using a custom
SQL SELECT using COUNT and GROUP BY. Votes and ratings aren't what those
EAV tables are designed to store. I would suggest creating a join table
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23061#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list