#18 closed enhancement (wontfix)
Metasystem optimization: Don't select duplicate fields
| Reported by: | Adrian Holovaty | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
In the following query, "poll_choices.poll_id" and "polls.id" are the same
value. Only one of them needs to be selected:
SELECT poll_choices.id,poll_choices.poll_id,poll_choices.choice,
poll_choices.votes, polls.id,polls.slug,polls.question,polls.pub_date,
polls.expire_date
FROM poll_choices, polls
WHERE poll_choices.poll_id = polls.id
Note:
See TracTickets
for help on using tickets.
Closing because this wouldn't be worth the effort.