Homec4science

Add functionality to Lisk to only get some columns from the database

Authored by Nicholas Harper <nharper@fb.com> on Oct 7 2011, 23:28.

Description

Add functionality to Lisk to only get some columns from the database

Summary:
Added loadColumns, loadColumnsWhere instance methods to Lisk, so when you only
need some fields of your object loaded, you can do so. This will be useful for
places where we fetch a large number of rows, but only care about a few columns.
In that situation, these functions can be used so the db doesn't have to return
as much data.

Test Plan:
Loaded a typeahead to check that the existing lisk functions still work.
Modified typeahead to fetch data using loadColumns instead of loadAll and
checked that it still works.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley, nh, jungejason

Differential Revision: 947

Details

Committed
Nicholas Harper <nharper@fb.com>Oct 7 2011, 23:55
Pushed
aubortJan 31 2017, 17:16
Parents
rPHc29982acb973: Fix phid accumulation for handles
Branches
Unknown
Tags
Unknown

Event Timeline

Nicholas Harper <nharper@fb.com> committed rPHc3709c56fcbe: Add functionality to Lisk to only get some columns from the database (authored by Nicholas Harper <nharper@fb.com>).Oct 7 2011, 23:55