Storing entries in a very large database
<p>I am writing a Django application that will have entries entered by users of the site. Now suppose that everything goes well, and I get the expected number of visitors (unlikely, but I'm planning for the future). This would result in hundreds of millions of entries in a single PostgreSQL database.</p>

<p>As iterating through such a large number of entries and checking their values is not a good idea, I am considering ways of grouping entries together.</p>

<p>Is grouping entries in to sets of (let's say) 100 a better idea for storing this many entries? Or is there a better way that I could optimize this?</p>