Ticket #79 (closed enhancement: fixed)
Picking database columns for QQuery
| Reported by: | alex94040 | Owned by: | somebody |
|---|---|---|---|
| Priority: | important | Milestone: | 2.1 |
| Component: | QQuery | Version: | |
| Keywords: | qquery | Cc: |
Description (last modified by alex94040) (diff)
We need the ability to say which columns we'd like to SELECT in a QQuery statement. Otherwise, the performance of the queries generated by it is very sub-optimal. Lack of this ability, for example, kills the concept of a "covering index".
Proposed syntax: A query that only grabs and fills in the Id and Name variables of the User object array
$query->AddClause(QQ::SelectColumn(QQN::User()->Id, QQN::User()->Name));
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

