Efficiently handling large data sets on mobile devices
First Claim
1. A computer-implemented method for displaying a list view of a dataset on a mobile device, comprising:
- initializing a list view for the mobile device, wherein the list view comprises bound primary keys and bound data rows received from a server and bound to user interface (UI) elements as displayed on the mobile device;
receiving data from the server in response to a query, wherein the received data comprises a plurality of primary keys corresponding to data rows from the dataset not already received at the mobile device, and wherein the corresponding data rows are stored on the server;
in response to detecting a direction and velocity of a scrolling input within the UI of the mobile device, defining a logical data window to have a size Nx, wherein x is a number of records simultaneously displayable on a page of the UI, and wherein N is a scroll speed, the logical window comprising the received primary key data which is not displayed on the mobile device;
predicting the scroll speed of the scrolling input based on a previous scrolling speed;
based on the speed of the scrolling input predicted to be a predetermined value, allocating a thread to fetch data;
based on the speed of the scrolling input predicted to be other than the predetermined value, receiving the data rows of the data set corresponding to the primary keys already received at the mobile device that comprise the logical data window;
binding, at the mobile device, the requested data rows corresponding to the primary keys of the logical data window, to a plurality of UI elements for display on the mobile device within the logical data window and prior to display in the list view, wherein the logical data window comprises a plurality of virtual groups bound to UI elements and sized based on a size of the logical data window and the direction and velocity of the scrolling input.
1 Assignment
0 Petitions
Accused Products
Abstract
A system, method, and computer program product are provided for efficiently fetching and displaying large datasets on mobile devices, such as devices running the iPhone™ operating system. The method fetches data for a mobile device from a server and displays a plurality of data rows in a ListView within a user interface on the mobile device. The method stores primary keys on the mobile device until their corresponding data rows are to be displayed. The method reacts to user inputs such as scrolling actions and touch screen gestures to efficiently fetch and display list view subsets of large datasets. The method facilitates quick response times when navigating through large lists of data on a mobile device by: fetching displayable or visible rows of data in a data list view, preloading the visible rows on the mobile device; and binding the visible rows to user interface elements on the mobile device.
42 Citations
19 Claims
-
1. A computer-implemented method for displaying a list view of a dataset on a mobile device, comprising:
-
initializing a list view for the mobile device, wherein the list view comprises bound primary keys and bound data rows received from a server and bound to user interface (UI) elements as displayed on the mobile device; receiving data from the server in response to a query, wherein the received data comprises a plurality of primary keys corresponding to data rows from the dataset not already received at the mobile device, and wherein the corresponding data rows are stored on the server; in response to detecting a direction and velocity of a scrolling input within the UI of the mobile device, defining a logical data window to have a size Nx, wherein x is a number of records simultaneously displayable on a page of the UI, and wherein N is a scroll speed, the logical window comprising the received primary key data which is not displayed on the mobile device; predicting the scroll speed of the scrolling input based on a previous scrolling speed; based on the speed of the scrolling input predicted to be a predetermined value, allocating a thread to fetch data; based on the speed of the scrolling input predicted to be other than the predetermined value, receiving the data rows of the data set corresponding to the primary keys already received at the mobile device that comprise the logical data window; binding, at the mobile device, the requested data rows corresponding to the primary keys of the logical data window, to a plurality of UI elements for display on the mobile device within the logical data window and prior to display in the list view, wherein the logical data window comprises a plurality of virtual groups bound to UI elements and sized based on a size of the logical data window and the direction and velocity of the scrolling input. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A non-transitory computer-readable medium having stored thereon, computer-executable instructions that, in response to execution by a computing device, cause the computing device to perform operations for displaying data on a mobile device, the operations comprising:
-
initializing a list view for the mobile device, wherein the list view comprises bound primary keys and bound data rows received from a server and bound to user interface (UI) elements as displayed on the mobile device; receiving data from the server in response to a query, wherein the received data comprises a plurality of primary keys corresponding to data rows from the dataset not already received at the mobile device, and wherein the corresponding data rows are stored on the server; in response to detecting a direction and velocity of a scrolling input within the UI of the mobile device, defining a logical data window to have a size Nx, wherein x is a number of records simultaneously displayable on a page of the UI, and wherein N is a scroll speed, the logical window comprising the received primary key data which is not displayed on the mobile device; predicting the scroll speed of the scrolling input based on a previous scrolling speed; based on the speed of the scrolling input predicted to be a predetermined value, allocating a thread to fetch data; based on the speed of the scrolling input predicated to be other than the predetermined value, receiving the data rows of the data set corresponding to the primary keys already received at the mobile device that comprise the logical data window; binding, at the mobile device, the requested data rows corresponding to the primary keys of the logical data window, to a plurality of UI elements for display on the mobile device within the logical data window and prior to display in the list view, wherein the logical data window comprises a plurality of virtual groups bound to UI elements and sized based on a size of the logical data window and the direction and velocity of the scrolling input.
-
-
14. A system capable of displaying a list view of a dataset, the system comprising:
a mobile device comprising; a fetching module configured to retrieve primary keys from the dataset in response to a query, wherein the primary keys correspond to data rows from the dataset not already received at the mobile device, and wherein the corresponding data rows are stored on a server; an initialization module configured to initialize a list view data structure based on a number of records in the dataset and a height of one row in the UI of the mobile device; a definition module configured to, in response to detecting a direction and velocity of a scrolling input within the UI of the mobile device, define a logical data window to have a size Nx, wherein x is a number of records simultaneously displayable on a page of the UI, and wherein N is a scroll speed, the logical window comprising the received primary key data which is not displayed on the mobile device; a dynamic paging module, configured to; predict the scroll speed of the scrolling input based on a previous scrolling speed; based on the speed of the scrolling input predicted to be a predetermined value, allocate a thread to fetch data; based on the speed of the scrolling input predicted to be other than the predetermined value, receive the data rows of the data set corresponding to the primary keys already received at the mobile device that comprise the logical data window; a binding module configured to bind the requested data rows corresponding to the primary keys of the logical data window, to a plurality of UI elements for display on the mobile device within the logical data window and prior to display in the list view, wherein the logical data window comprises a plurality of virtual groups bound to UI elements and sized based on a size of the logical data window and the direction and velocity of the scrolling input; and a display module configured to display the requested data rows corresponding to the primary keys of the logical data window bound to the plurality of UI elements. - View Dependent Claims (15, 16)
-
17. A computer program product comprising a non-transitory computer usable medium having computer program logic recorded thereon for enabling a processor to display a list view of a dataset at a client device, the computer program logic comprising:
-
fetching means for enabling the processor to retrieve primary keys from the dataset in response to a query, wherein the primary keys correspond to data rows from the dataset not already received at the mobile device, and wherein the corresponding data rows are stored on a server; initialization means for enabling the processor to initialize a list view data structure based on a number of records in the dataset and a height of one row in the UI of the client device; definition means for enabling the processor to, in response to detecting a direction and velocity of a scrolling input within the UI of the mobile device, define a logical data window to have a size Nx, wherein x is a number of records simultaneously displayable on a page of the UI, and wherein N is a scroll speed, the logical window comprising the received primary key data which is not displayed on the mobile device; paging means for enabling the processor to; predict the scroll speed of the scrolling input based on a previous scrolling speed; based on the speed of the scrolling input predicted to be a predetermined value, allocate a thread to fetch data; based on the speed of the scrolling input predicted to be other than the predetermined value, receive the data rows of the data set corresponding to the primary keys already received at the mobile device that comprise the logical data window; binding means for binding, at the mobile device, the requested data rows corresponding to the primary keys of the logical data window, to a plurality of UI elements for display on the mobile device within the logical data window and prior to display in the list view, wherein the logical data window comprises a plurality of virtual groups bound to UI elements and sized based on a size of the logical data window and the direction and velocity of the scrolling input; and displaying means for enabling the processor to display the requested data rows corresponding to the primary keys of the logical data window bound to the plurality of UI elements. - View Dependent Claims (18, 19)
-
Specification