C# enums with SQL Express DB

  • Thread starter Thread starter Varangian
  • Start date Start date
V

Varangian

Hi,

This is a performance issue....

How about storing static data in integers in the database, querying it
using integers as well, while displaying that static I'll use Enums -
for example a 1 means "Kitchen".?

Would this improve a database performance?

Thanks!
 
You might get some performance improvement, since integers take up less
storage than the equivalent varchar string.
Most database schemas have a table that holds the integer value in one
column, and the varchar "Enum item name" in another .
Peter
 
but then on the other hand its not wortwhile having two columns that
represent the same data .. one in integer and the other in varchar ?!

doesn't make sense to me
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top