Create client defined cache partitions based on mobile business object (MBO) and load argument definitions.
These examples use the employee table in the My Sample Database connection profile.
SELECT emp_id, manager_id, emp_fname, emp_lname, dept_id, street, city, state, zip_code, phone, status, ss_number, salary, start_date, termination_date, birth_date, bene_health_ins, bene_life_ins, bene_day_care, sex FROM sampledb.dba.employee where state = :state_param
Only the data in the partition of interest refreshes. This is an important performance consideration for large tables.
This example shows how to create a partitioned cache for the employee table where the partitions are defined by a compound partition key that uses two attributes: city and state.
SELECT emp_id, manager_id, emp_fname, emp_lname, dept_id, street, city, state, FROM sampledb.dba.employee WHERE state LIKE :state_param + '%' AND city LIKE :city_param + '%'