0

I have a small db app that stores URL's of all lengths, some extremely long (hundreds of characters) and some of typical length (< 50 characters). Am I introducing inefficiencies into the DB by declaring VARCHAR(1000) (or higher) as the type? Is there something better to use?

0

2 Answers 2

2

http://www.boutell.com/newfaq/misc/urllength.html

As for me - I'm sure 1000 chars is quite enough for any url

Sign up to request clarification or add additional context in comments.

Comments

0

Depends on your RDMBS. In PostGreSQL you use type TEXT for variable length strings.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.