Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#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

Change History (1)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: wontfix
Status: newclosed

Closing because this wouldn't be worth the effort.

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