Opened 18 years ago
Closed 16 years ago
#3613 closed (wontfix)
[multi-db] select_related stuck in recursive loop
Reported by: | 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)
follow-up: 2 comment:1 by , 18 years ago
follow-up: 3 comment:2 by , 18 years ago
Component: | Uncategorized → Database wrapper |
---|---|
Owner: | changed from | to
Triage Stage: | Unreviewed → 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?
comment:3 by , 18 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 , 16 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The multi-db is no longer active. Alternative approaches are being considered for trunk.
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.