2016/03/03 by Ю. Н. Пономарев, I. N. Ponomarev, Ponomarev, I. N.
Computer Science · Decision Sciences · #Advanced Database Systems and Queries #Big Data Technologies and Applications #D.2.2 #Data Management and Algorithms #Databases (cs.DB) #FOS: Computer and information sciences #cs.DB
paper · pdf · doi:10.48550/arxiv.1603.01102
10 pages, 3 figures, in Russian
arxiv created 2016/03/03 · openalex publication_date 2016/03/03 · arxiv updated 2016/03/04 · openalex created_date 2016/06/24 · openalex updated_date 2026/07/28
Table grid user interface element with a vertical scrollbar is a standard way of working with database table records. There are two basic operations each grid should support: scrolling records with vertical scrollbar and positioning to a record with a given primary key. This paper addresses the case when the number of records is so large that it is not feasible to load them all into memory, and database functions like "select..offset" work insufficiently fast and put undue load on RDBMS. Our main idea is to use only queries that involve index lookup (a O(Log(N)-fast operation) and to use statistic properties of hypergeometric distribution to "guess" primary keys of records given their ordinal numbers. The proposed method allows us to implement a grid with O(Log(N))-fast scrolling and positioning performance.