INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Field Type choices- Best Practice?  (Read 836 times)

Quixote

  • Regular Member
  • World Citizen
  • ***
  • Posts: 158
  • Change this by choosing profile
Field Type choices- Best Practice?
« on: January 09, 2006, 11:50:52 am »

When creating a custom user fields how much different would using an Interger type be verses using a String type?  How significant are performance differences between the two?  I'm creating many Yes/No-esque fields.

For example:

Field:  IsInstrumental, IsProfane

What is the "best practice" design for this field?  As a String with "Yes,No" List options? As an Integer with "1,2" List options?  How much does performance take a hit when expanding list options to 3+ items?
Logged

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Field Type choices- Best Practice?
« Reply #1 on: January 09, 2006, 12:34:43 pm »

I doubt there is that much of a difference beteen String or Integer in terms of performance. They are stored in the database as types. You are not calling these types 100s of times a second.

It's more a choice of which you prefer.
Logged
Pages: [1]   Go Up