I need to check if a particular record in a (potentially) large database (millions of records) exists.
I can choose to uniquely identify the record with:
- 2 integer numbers (example: 231321 and 312309)
- 1 float number (a combination of the two integer numbers. example: 231321.312309)
- 1 string (a combination of the two integer numbers. example: ‘231321@312309’)
Is one of these three options better than the others?
Thanks!
Use 2 integers.
Rationale:
in a single float without loss of precision.