Bug 1024843 - [XMLRPC] Do we really need to get a TestBuild object to construct search criterias?
Summary: [XMLRPC] Do we really need to get a TestBuild object to construct search crit...
Keywords:
Status: NEW
Alias: None
Product: TCMS
Classification: Other
Component: XMLRPC
Version: Devel
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Yang Ren
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-30 13:51 UTC by cqi
Modified: 2015-12-01 05:45 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description cqi 2013-10-30 13:51:00 UTC
Within get_runs and get_caseruns method in build.py, build is the necessary criteria to search all objects associated with the TestBuild. Both of these twos get a real TestBuild object and then construct search criterias object, which is a django QuerySet criterias.

However, according to the ability of django's ORM, it's unnecessary to pass a complete TestBuild object, only the ``build_id`` is enough. Thus, one SQL query consumption is saved, and we can imagine how much resources can be saved in the server side, when those two method is being used in auto testing scripts.


Note You need to log in before you can comment on or make changes to this bug.