Re: #23646 Enhancement: Updating multiple values in a single sql update using Django ORM

2014-10-20 Thread Anshuman Aggarwal
. Now that we do 'require' it, we're making the effort. Its quite possible there are others who would also benefit once implemented. Thanks, Anshuman On 20 October 2014 13:14, Russell Keith-Magee wrote: > HI Anshuman, > > On Mon, Oct 20, 2014 at 2:03 PM, Anshuman Agg

Re: #23646 Enhancement: Updating multiple values in a single sql update using Django ORM

2014-10-19 Thread Anshuman Aggarwal
ement without it, this isn't the case for a multi-object UPDATE as far > as I can tell. > > Alex > > On Sun, Oct 19, 2014 at 11:34 PM, Anshuman Aggarwal < > anshuman.aggar...@gmail.com> wrote: > >> Thanks for the input Javier. Wouldn't a similar argument ho

Re: #23646 Enhancement: Updating multiple values in a single sql update using Django ORM

2014-10-19 Thread Anshuman Aggarwal
pdate queries being collated into a single transaction. On 20 October 2014 11:52, Javier Guerra Giraldez wrote: > On Mon, Oct 20, 2014 at 1:03 AM, Anshuman Aggarwal > wrote: > > The idea of having a .update() ORM construct is to be able to do this > > without having to fall down

Re: #23646 Enhancement: Updating multiple values in a single sql update using Django ORM

2014-10-19 Thread Anshuman Aggarwal
ntil someone agrees with you. I've given you a specific > course of action - provide performance benchmarks. Until you provide them, > the only thing reposting like this will do is annoy the people you need to > help you. > > Yours, > Russ Magee %-) > > On Mon, Oct 20

#23646 Enhancement: Updating multiple values in a single sql update using Django ORM

2014-10-19 Thread Anshuman Aggarwal
Posting this Django Project ticket that I opened to track the enhancement request to update multiple rows with different values for the same field for a particular Django queryset in a single SQL query without having to write raw SQL. Please see the discussion there. https://code.djangoproject

Single SQL update to multiple values instead of multiple sequential queries

2014-10-18 Thread Anshuman Aggarwal
Please see this enhancement request: https://code.djangoproject.com/ticket/23646 Unlike what Russ has suggested, I'm pretty sure that a single UPDATE query with a large number (Ks/Ms) of updates will be significantly faster than doing multiple SQL UPDATE queries. If more people on the list feel

Re: list_display does not allow foreign keys __ syntax

2011-05-25 Thread Anshuman Aggarwal
Hate to bump a thread, but any thoughts on the last proposal, Luke? On May 20, 4:13 pm, Anshuman Aggarwal wrote: > Usage would be: list_display = (ff('model__field__fkfield', > short_description='FK Field') but ideally, the short_description > should be optional with

Re: Proposal: remove "Change" links on admin index page

2011-05-23 Thread Anshuman Aggarwal
Luke, I completely agree on the need for change and personally +1 this as it is a completely confusing historical annoyance. However, as in all deprecation, I would suggest that we start with a global setting that allows these links to be hidden on an installation by installation basis and the de

Re: list_display does not allow foreign keys __ syntax

2011-05-20 Thread Anshuman Aggarwal
else. On May 20, 4:08 pm, Anshuman Aggarwal wrote: > Hi Luke, >  Thanks for a detailed reply. I have gone over your points carefully > and agree on most except a few key ones. > > Based on your response: >  - The question here is really how often is the guesswork right and >

Re: list_display does not allow foreign keys __ syntax

2011-05-20 Thread Anshuman Aggarwal
eld_name if admin_order_field: accessor.admin_order_field = admin_order_field else: accessor.admin_order_field = (field_name,) return accessor Regards, Anshuman On May 17, 11:35 pm, Luke Plant wrote: > Hi Anshuman, > > On 17/05/11 14:42,

Re: list_display does not allow foreign keys __ syntax

2011-05-17 Thread Anshuman Aggarwal
On May 17, 5:18 pm, Luke Plant wrote: > On 17/05/11 12:20, Anshuman Aggarwal wrote: > > > Since the parent__child syntax is being used for list filter, search > > fields and everywhere else, is there a reason why the list_display has > > to be sacrosanct? > > Pl

list_display does not allow foreign keys __ syntax

2011-05-17 Thread Anshuman Aggarwal
I know this has been discussed (not sure to what depth) but callables is not the solution. Please bear with me and help me (not force me) to understand why what I am suggesting is wrong. I did look in the list and have tried taking this discussion to the ticket system. http://code.djangoproject.com

list_display does not allow foreign keys __ syntax

2011-05-17 Thread Anshuman Aggarwal
I know this has been discussed (not sure to what depth) but callables is not the solution. Please bear with me and help me (not force me) to understand why what I am suggesting is wrong. I did look in the list and have tried taking this discussion to the ticket system. http://code.djangoproject.