title: Redis: Maximum score size for sorted sets? Score + Unique ids = Unique Scores?
body: <p>I'm using timestamps as the score. I want to prevent duplicates by appending a unique object-id to the score. Currently, this id is a 6 digit number (the highest id right now is 221849), but it is expected to increase over a million. So, the score will be something like 
  1407971846221849 (timestamp:1407971846 id:221849) and will eventually reach 14079718461000001 (timestamp:1407971846 id:1000001).</p>
  
  <p>My concern is not being able to store scores because they've reached the max allowed.</p>
  
  <p>I've read the <a href="http://redis.io/commands/ZADD" rel="nofollow">docs</a>, but I'm a bit confused. I know, basic math. But bear with me, I want to get this right.</p>
  
  <blockquote>
    <p>Redis sorted sets use a double 64-bit floating point number to represent the score. In all the architectures we support, this is represented as an IEEE 754 floating point number, that is able to represent precisely integer numbers between -(2^53) and +(2^53) included. In more practical terms, all the integers between -9007199254740992 and 9007199254740992 are perfectly representable. Larger integers, or fractions, are internally represented in exponential form, so it is possible that you get only an approximation of the decimal number, or of the very big integer, that you set as score.</p>
  </blockquote>
  
  <p>There's another thing bothering me right now. Would the increase in ids break the chronological sort sequence ?</p>
  
  <p>I will appreciate any insights, suggestions, different prespectives or flat out if what I'm trying to do is non-sense.</p>
  
  <p>Thanks for any help.</p>