Code

Opened 9 years ago

Closed 8 years ago

Last modified 7 years ago

#18 closed enhancement (wontfix)

Metasystem optimization: Don't select duplicate fields

Reported by: adrian Owned by: adrian
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

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to closed

Closing because this wouldn't be worth the effort.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.