I'm currently getting facebookids from facebook and storing them in a mysql database. The ids are around 17 characters long ex: 10211604228890284.
I'm currently storing them as BigInt primary keys, however I've been told that this can increasingly reduce performace.
would storing them as primary key string work?, or is there a better way of doing this.
here is my current code:
Create table users(
id bigint AUTO_INCREMENT,
primary key (id)
);
CREATE TABLE users_friends(
id bigint,
friend_id bigint,
Primary Key (id,friend_id),
Foreign Key (id) REFERENCES users(id),
Foreign Key (friend_id) REFERENCES users(id)
);