M
M
mixserby2016-02-12 17:46:32
SQL
mixserby, 2016-02-12 17:46:32

Is it good practice to use the id of a third party service object as the primary key in your database?

I am writing a small project to analyze tweets and wondered if it is good to use third party id as my pk.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Shevelev, 2016-02-12
@mixserby

There are several options:
In most cases, the answer is "No", you should not use a third-party key as primary.

L
look2009, 2016-02-12
@look2009

If there is only one third-party service, then why not.

S
sim3x, 2016-02-12
@sim3x

bad

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question