Join of any db table with Q.add_to_query

2008-11-03 Thread Dima Dogadaylo
Before merging of queryset-refactor it was possible to join any table with any ON clause to any queryset with help of Q.as_sql. For example, please see this one: http://www.djangosnippets.org/snippets/257/ Since Django 1.0 ORM looks like more complicated, Q.as_sql is disappeared (but still mentio

Django ORM performance patch. Fixes #5420, #5768

2008-02-14 Thread Dima Dogadaylo
I made a patch for Django to add QuerySet.fields(*fields, **related_fields) and make possible to load only some from master and related models fields. It allows to tune various object list queries when we need only limited subset of all fields, improve general performance and decrease database loa

Django profiler to find a project weak spots

2007-11-12 Thread Dima Dogadaylo
Hi, I wrote a Django pofiler that can be used to find weak performance spots in Django projects, i.e. to find how many SQL-queries are used per page, how heavy html-pages are, etc. The source code of the script and examples of usage are available here: http://www.mysoftparade.com/blog/django-

Django profiler to find a project weak spots

2007-11-12 Thread Dima Dogadaylo
Hi, I wrote a Django pofiler that can be used to find weak performance spots in Django projects, i.e. to find how many SQL-queries are used per page, how heavy html-pages are, etc. The source code of the script and examples of usage are available here: http://www.mysoftparade.com/blog/django-pr

Re: How put admin in deployment

2007-11-13 Thread Dima Dogadaylo
On Tue, 2007-11-13 at 14:56 +, mamcxyz wrote: > In test mode, I can acces the "admin" site, but when I deploy the site > I can't do it. > > Before, I setup another fastcgi process to it, but I think that is > overkill (I must run this under a VPS). Any trick to put admin under > the regular f

Re: MOD_PYTHON ERROR

2007-11-15 Thread Dima Dogadaylo
pacman, looks like you code imported in settings.py conflicts with updated django code. Execute ./manage.py validate or ./manage.py test to find the problem file. -- Dima Dogadaylo, http://www.mysoftparade.com/ On Wed, 2007-11-14 at 19:46 -0800, pacman wrote: > Hello all, > I'm n

WebAlchemy accelerates Django in 100 times

2007-11-18 Thread Dima Dogadaylo
ebAlchemyMiddleware: http://www.mysoftparade.com/blog/webalchemy-django-apache/ -- Dima Dogadaylo, http://www.mysoftparade.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: Performance of a django website

2007-12-25 Thread Dima Dogadaylo
On Dec 11, 8:37 pm, Richard Coleman <[EMAIL PROTECTED]> wrote: > 1. mod_python > 2. apache 2.2.4 > 3. I'm using funkload and ab to measure the requests per second of one > of the base pages within the dynamic part of the website > 4. When I hit a static page in the same way (using ab), I get 650