<div>On Mon, 18 Mar 2019 at 10:49 PM, Mojca Miklavec <<a href="mailto:mojca@macports.org">mojca@macports.org</a>> wrote:<br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">And in fact I'm unable to find any indices in your DB model.</blockquote><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote><div dir="auto">Thanks, I shall add this. I am dealing with this huge data set for the first time.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also, TextField might be suitable for description etc, but for short<br>
entries like port name, this probably offers suboptimal performance<br>
and CharField would make more sense. I did not time it though, and<br>
this is not the bottleneck in your code, but the indices are<br>
definitely critical for perfomance.</blockquote><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote><div dir="auto">Yes, I have finalised the ports table now and hence, I shall change the field types accordingly as to which one is the most suitable for the data type in that column.</div><div dir="auto"><br></div><div dir="auto">Also, I have terminated the process of populating the database- my internet today and the free tier both are making it really difficult. I was able to load the entire database within seconds locally.</div><div dir="auto"><br></div><div dir="auto">Thank You</div></div></div>