[wp-trac] Re: [WordPress Trac] #7540: allow multiple values for key in usermeta

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 21 14:31:46 GMT 2009


#7540: allow multiple values for key in usermeta
--------------------------------------------------+-------------------------
 Reporter:  wnorris                               |        Type:  enhancement
   Status:  new                                   |    Priority:  normal     
Milestone:  2.8                                   |   Component:  Users      
  Version:  2.6.1                                 |    Severity:  normal     
 Keywords:  needs-patch 2nd-opinion dev-feedback  |  
--------------------------------------------------+-------------------------

Comment(by Denis-de-Bernardy):

 I figured, yeah. My own concern (and, I believe, Ryan's) would be to make
 sure nothing breaks in the process. It's like... I've plugins that have
 come to rely on the fact that get_usermeta() is redundant for $user->foo,
 and I'm certainly not alone. The fact of the matter is, I'd much rather
 that postmeta behaves the same as usermeta, rather than the other way
 around.

 The usefulness of multi-key postmeta lies in being able to run queries
 against their values when they're arrays without string indexes. I've
 found this was rarely useful in practice, because when you *do* need to
 run queries on such things you're often better off creating or modifying a
 table outright, to avoid SQL joins that are slower than they should (keep
 in mind that the meta value is stored as LONGTEXT :-)).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/7540#comment:25>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list