title: save IP address in mongoDB
body: <p>Currently in order to save an IP address I am converting it to number and store it in the collection. Basically I am doing this for logging purposes. This means that I care to store information as fast as possible and with smallest amount of space.</p>
  
  <p>I will be rarely using it for querying.</p>
  
  <p>My ideas that </p>
  
  <ul>
  <li>Storing as strings is for sure inefficient.</li>
  <li>Storing as 4 digits will be slower and will take more space.</li>
  </ul>
  
  <p>Nonetheless I think that this is an adequate method, but is there a better one for my purpose?</p>