Opened 11 years ago

Closed 11 years ago

Last modified 9 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: UI/UX:

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 Changed 11 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed

Closing because this wouldn't be worth the effort.

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