carillonator:

It sounds like you might be attempting to solve the wrong problem. Why are you interested in the differences between each pair of patents? If it's to find "similar" patents to a specified one, it might be faster to compute the results as needed. I can't really imagine that you would care about the difference between a patent on 'improved grooming proceedure for cocker spaniels' and 'increasing yield of aspartame using industrial waste'.

Once you identify why you need the results, you might find ways of getting what you need quickly without exhaustively building a database for every possible combination (6.4 x 10^13 entries ... sounds like a reasonably large database when you're done...). For example, if there's a threshold above which you don't care, you might be able to cluster your patents into groups such that membership in one group excludes it from all other groups, drastically reducing your search space. If you can do it well enough, you may be able to run queries against the data in real time.

...roboticus

In reply to Re: Huge data file and looping best practices by roboticus
in thread Huge data file and looping best practices by carillonator

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.