Opened 17 years ago

Closed 15 years ago

#3613 closed (wontfix)

[multi-db] select_related stuck in recursive loop

Reported by: carole.zieler@… Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Keywords: multi-db
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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.

Change History (4)

comment:1 by anonymous, 17 years ago

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 ; comment:2 by Gary Wilson <gary.wilson@…>, 17 years ago

Component: UncategorizedDatabase wrapper
Owner: changed from Jacob to Adrian Holovaty
Triage Stage: UnreviewedAccepted

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 comment:3 by carole zieler <carole.zieler@…>, 17 years ago

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.

comment:4 by Malcolm Tredinnick, 15 years ago

Resolution: wontfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top