<br><br><div class="gmail_quote">On Sun, May 6, 2012 at 6:07 PM, Benjamin Schollnick <span dir="ltr"><<a href="mailto:benjamin@schollnick.net" target="_blank">benjamin@schollnick.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div class="im"><br><div><div>On May 6, 2012, at 11:57 AM, J. Mwebaze wrote:</div><br><blockquote type="cite">I have several lists with approx 1172026 entries. I have been trying to sort the records, but have failed.. I tried lists.sort() i also trired sorted python's inbuilt method. This has been running for weeks.<div>
<br></div>
<div>Any one knows of method that can handle such lists. </div></blockquote><br></div></div><div>The issue there is the sheer size of the list.  I can't think of an algorithium that wouldn't have a problem with a list of that size.</div>
<div><br></div><div>Two suggestions....</div><div><br></div><div>1) Is there no other way to organize this data, other than having it in a single list?  You can't organize it by, for example, zip code, area code, year, or something, and make multiple lists?  Reducing the size would speed the sort up.</div>
<div><br></div><div>2) Maybe consider a different storage method, for example, adding the data into a database?  And then connecting to the database via python?</div><span class="HOEnZb"><font color="#888888"><div><br></div>
<div><span style="white-space:pre-wrap">          </span>- Benjamin</div><div><br></div></font></span></div></blockquote></div><div><br></div>I could try the database option.. <div><br><br clear="all"><div><br></div>-- <br><font style="color:rgb(0,51,0)" size="1"><b>Mob UG: +256 (0) 70 1735800 | NL +31 (0) 6 852 841 38 | Gtalk: jmwebaze |  skype: mwebazej | URL: <a href="http://www.astro.rug.nl/~jmwebaze" target="_blank">www.astro.rug.nl/~jmwebaze</a><br>
<br>/* Life runs on code */</b></font><br><br>
</div>