So, I found the offending piece of code that causes the performance troubles: <a href="https://github.com/p2pu/lernanta/blob/master/lernanta/apps/projects/models.py#L323">https://github.com/p2pu/lernanta/blob/master/lernanta/apps/projects/models.py#L323</a><br>
<br>This function looks for users that completed the challenge. Any suggestion on how we can improve it?<br><br>Cheers<br>d<br><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 5:43 PM, Dirk Uys <span dir="ltr"><<a href="mailto:dirk@p2pu.org" target="_blank">dirk@p2pu.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bekka, Jose<br><br>This is something I've also noticed. <br><br>There are several things contributing to the problems. One of them is how followers for courses are set up - it seems like the generated SQL queries hits the db quite hard. Another problem is lots of data lying around in the db that makes things slower as the size of the tables increases.<br>

<br>I'll be looking into this carefully.<br><br>Thanks for reporting the trouble<br><br>Cheers<span class="HOEnZb"><font color="#888888"><br>d</font></span><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">
On Thu, Dec 13, 2012 at 5:47 AM, Jos Flores <span dir="ltr"><<a href="mailto:josmasflores@gmail.com" target="_blank">josmasflores@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nope, it's still slow... trying to edit a page... taking ages! :S<br>
<br>
cheers,<br>
José<br>
<div><div><br>
On 13 December 2012 10:43, Jos Flores <<a href="mailto:josmasflores@gmail.com" target="_blank">josmasflores@gmail.com</a>> wrote:<br>
> Hey Bekka, it was quite slow for a while but seems to be back to normal now?<br>
><br>
> cheers,<br>
> José<br>
><br>
><br>
> On 13 December 2012 10:39, Rebecca Kahn <<a href="mailto:bekka@p2pu.org" target="_blank">bekka@p2pu.org</a>> wrote:<br>
>> Is it just me?<br>
>> _______________________________________________<br>
>> p2pu-dev mailing list<br>
>> <a href="mailto:p2pu-dev@lists.p2pu.org" target="_blank">p2pu-dev@lists.p2pu.org</a><br>
>> <a href="http://lists.p2pu.org/mailman/listinfo/p2pu-dev" target="_blank">http://lists.p2pu.org/mailman/listinfo/p2pu-dev</a><br>
>><br>
_______________________________________________<br>
p2pu-dev mailing list<br>
<a href="mailto:p2pu-dev@lists.p2pu.org" target="_blank">p2pu-dev@lists.p2pu.org</a><br>
<a href="http://lists.p2pu.org/mailman/listinfo/p2pu-dev" target="_blank">http://lists.p2pu.org/mailman/listinfo/p2pu-dev</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>