[wp-hackers] post_status and post_type

Rob powzor at gmail.com
Fri Feb 10 01:13:38 GMT 2006


Ryan Boren wrote:
> Owen Winkler wrote:
>> Ryan Boren wrote:
>>
>>> Behold the changeset of destruction.
>>>
>>> http://trac.wordpress.org/changeset/3510
>>>
>>
>> Curious on this one point:
>>
>> Why is post_type a varchar(100) and not an enum('post','page', 
>> 'attachment')?  Wouldn't that be faster?
>
> The varchar is used for portability and flexibility.  We might change 
> all occurences of enums to varchars.  Those porting WordPress to other 
> DBs curse our use of enums.
>
> Ryan
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
Is this general advice, to be applied to plugins as well?

-- 
Rob Miller
http://robm.me.uk/ | http://kantian.co.uk/



More information about the wp-hackers mailing list