I am not sure how you mean by storing email subjects, if you are referring
to a list of emails then I would be more inclined to do a one to many
relationship with another table. The benefits is faster indexing to begin
with.

But that is an assumption because you are not very clear what the column is
storing. As for optimal size, I doubt there is really such a thing because
if you set it to its max size based on the page size, you could still end up
needing more again. I know that might be unlikely because even at the lowest
page size the max for varchar is 4096.

Hope that helps some what.


On Thu, May 6, 2010 at 10:19 AM, Michael Dinowitz <
[email protected]> wrote:

>
> That was my standard reasoning when setting varchar fields but if I'm
> storing email subjects then there may be more than 255 characters. Why limit
> myself to a standard that has little to do with what I'm actually doing.
>
> To add to my question, is there an optimal varchar size for
> indexing/searching?
>
> Thanks
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/sql/message.cfm/messageid:3343
Subscription: http://www.houseoffusion.com/groups/sql/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/sql/unsubscribe.cfm

Reply via email to