Django

Code

Ticket #3613 (closed: wontfix)

Opened 2 years ago

Last modified 2 months ago

[multi-db] select_related stuck in recursive loop

Reported by: carole.zieler@gmail.com Assigned to: nobody
Milestone: Component: Database layer (models, ORM)
Version: SVN Keywords: multi-db
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

using .select_related on objects ( even if foreign keys are all in the same database ) seems to be hanging in some sort of recursive loop.

I'm attaching a file of a Django project that I created this morning...basically a culled down version of my big project. I'm also attaching a sql dump of my UserDB database...so that it would be easier to view the problem ...

Basically... al you would need to do is go to the settings file...and modify the template directory to be where every you unzipped this tarball to ... and then install the sql dump on your mysql service..and you should be able to run it..and see the problem... by going to http://127.0.0.1:8000/bugsample/useradmin ... if I remove the .select_related ... works fine... but if they are in there... doesn't work.

Attachments

Change History

(follow-up: ↓ 2 ) 02/28/07 23:49:35 changed by anonymous

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

Actually...it won't let me attach the files...if anyone is going to look at this let me know..and I can email them to you.. trac keeps erroring out.

(in reply to: ↑ 1 ; follow-up: ↓ 3 ) 03/02/07 22:30:30 changed by Gary Wilson <gary.wilson@gmail.com>

  • owner changed from jacob to adrian.
  • component changed from Uncategorized to Database wrapper.
  • stage changed from Unreviewed to Accepted.

Replying to anonymous:

Actually...it won't let me attach the files...if anyone is going to look at this let me know..and I can email them to you.. trac keeps erroring out.

Trac probably didn't let you since you were posting as anonymous. Try setting up a session at http://code.djangoproject.com/settings, this should give you better karma when posting and uploading it the Trac system. If this still doesn't work, then you can email the file to me and I will try posting. Thanks.

Do you know if this same problem exists in Django trunk or is it just in the multi-db branch?

(in reply to: ↑ 2 ) 03/03/07 15:38:04 changed by carole zieler <carole.zieler@gmail.com>

Replying to Gary Wilson <gary.wilson@gmail.com>:

Replying to anonymous:

Actually...it won't let me attach the files...if anyone is going to look at this let me know..and I can email them to you.. trac keeps erroring out.

Trac probably didn't let you since you were posting as anonymous. Try setting up a session at http://code.djangoproject.com/settings, this should give you better karma when posting and uploading it the Trac system. If this still doesn't work, then you can email the file to me and I will try posting. Thanks. Do you know if this same problem exists in Django trunk or is it just in the multi-db branch?

email sent with files.

I do not know if it happens in the trunk, as I've never installed that. We've needed multi-db support from the get go.

10/05/08 20:56:05 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to wontfix.

The multi-db is no longer active. Alternative approaches are being considered for trunk.


Add/Change #3613 ([multi-db] select_related stuck in recursive loop)




Change Properties
Action