bulk_update() causes Select N+1 issue

2023-01-13 Thread Nick Chang
Hi all, I read django doc on 'bulk_update() ' It said that generally it creates one single query to do so, but in a project I have has 'a_model.objects.bulk_update(update_list, fields=updated_keys), it actually

Re: Move apps to different folders or to a root folder

2022-11-10 Thread Nick Chang
break it? And it can be fixed by specifying the 'db_table" value in the moved models? Thanks! On Sunday, November 6, 2022 at 10:09:41 PM UTC-5 Mike Dewhirst wrote: > On 7/11/2022 2:40 am, Nick Chang wrote: > > Hello community, > > I am trying to organize my Django

Move apps to different folders or to a root folder

2022-11-06 Thread Nick Chang
Hello community, I am trying to organize my Django project's structure as the number of apps is growing. So I am attempting to move an app in the sub-folder that contains its model definitions. The app used to be named `< sub_folder_name>.foo ` and now it will be