Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 2
    2 million records * 500 bytes = 1 GB of data. That's a lot of data to search, whichever way you go about it - is each value of X likely to be unique, or will you have many records with the same value of X? Commented Nov 9, 2011 at 14:14
  • 1
    That would also be a lot of data to attempt to store in memory as a cache for quick retrieval. That would equate to more than 1GB per user session. Commented Nov 9, 2011 at 14:18
  • My previous comment assumes a web application. Is this a web application? Commented Nov 9, 2011 at 14:19
  • It is a desktop application. Values in the records are not necessarily unique. Also, I am searching for substring not for an exact match. Commented Nov 9, 2011 at 14:33
  • @maple_shaft: I would only cache the records that I have accessed recently. If I change the query string and a record still matches, it is still in the cache. Commented Nov 9, 2011 at 14:34