Users of my application can authenticate via Facebook, so I store facebook uids in my database and when user logs in I need to query my database like this:
SELECT * FROM users WHERE uid = _SOME_UID_;
Now uid
column is VARCHAR, but I think that I need to convert it to some numeric type BIGINT.
Why I think I need to do this:
processor time: in general operations with a numeric (filtering/indexing) are always faster than same operations with string
storage: numeric is smaller than corresponding string
ammm... oauth-argument Facebook authentication is the only type of authentication I'm going to use (actualy, this is a canvas application) - so I don't need to care for UIDs that are non-numerics
And questions are:
- am I right?
- Can Facebook someday start using non-numeric uids?