Skyline Queries on Vertically Partitioned Tables

Skyline Queries on Vertically Partitioned Tables

José Subero, Marlene Goncalves
Copyright: © 2015 |Pages: 16
DOI: 10.4018/978-1-4666-5888-2.ch180
OnDemand:
(Individual Chapters)
Available
$37.50
No Current Special Offers
TOTAL SAVINGS: $37.50

Chapter Preview

Top

Introduction

In the last decade, new database systems have emerged to support distributed data over the Web. Systems such as Amazon DynamoDB (Sivasubramanian, 2012), Bigtable (Chang et al., 2008), HBase (Dumon, 2013) and Cassandra (Lakshman & Malik, 2010) allow to store a very large size of data commonly produced in real time. To identify relevant data in large datasets, Skyline queries have been proposed (Börzsönyi et al., 2001). Users may express their preferences using a Skyline query. To exemplify Skyline queries, suppose a tourist who wants to find hotels in the Caribbean with the highest number of stars and the lowest distance to the beach and cost per night. Also, consider the 4 hotels shown in Figure 1.

Figure 1.

Hotel data

978-1-4666-5888-2.ch180.f01

The tourist’s query may be specified as a Skyline query. In this type of queries, tourist’s criteria are expressed by means of functions that maximize or minimize attributes. In this example, tourist's criteria correspond to maximize the number of stars and minimize the distance and the cost. Based on these criteria, the hotels h1, h2 and h4 in Figure 1 belong to the Skyline set. They are the best hotels since no other hotel is better than them in all criteria simultaneously. It can be noted the hotel h3 is worse or equal in all criteria than the hotel h1, and therefore, h3 is dominated by h1 and it is not part of the Skyline set.

To the best of our knowledge, few works have defined evaluation algorithms for Skyline queries over Vertically Partitioned Tables (VPTs) (Balke et al., 2004; Chen et al., 2011); a VPT stores data as key-value and it may be sorted (Vasani et al., 2013). Additionaly, VPTs has received the attention of many researchers because a vertical partitioned schema achieves performance improvements that has proven to be useful in a variety and type of data processed today including data warehousing, biomedical data, and RDF data.

To illustrate the evaluation of our Skyline query example on VPTs, consider the data partition shown in Figure 2.

Figure 2.

VPTs of hotel data

978-1-4666-5888-2.ch180.f02

A naive solution to answer a Skyline query on VPTs is to join the VPTs; the results of joining the VPTs are data displayed in Figure 1. Subsequently, the Skyline may be computed on this set of joined tuples using an existing Skyline query evaluation algorithm on centralized databases (Börzsönyi et al., 2001; Xu et al., 2012; Godfrey et al., 2007). This naive solution is inefficient since it builds the set of joined tuples before executing an algorithm to return the Skyline.

A second naive solution is to compute the Skyline before joining the VPTs. A smaller amount of data will be joined because the Skyline cardinality is smaller than the dataset size (Godfrey et al., 2007). In consequence, this solution is more efficient than the first one. However, this solution may be incorrect because the query answer may be empty. Let us consider the 2 new VPTs in Figure 3 where Chain indicates the hotel chain of each hotel and Ranking corresponds to the overall score of each hotel chain. Also, the tourist would also like to maximize the chain ranking.

Figure 3.

Skyline on VPTs of different sizes

978-1-4666-5888-2.ch180.f03

Notice that Star, Distance and Cost tables have the same keys while the Ranking table has a different key. Thus, the VPTs are joined by means of the Chain table. We named the Chain table as an intermediate table. An intermediate table has not preference attributes, but rather its attributes refer to keys that are defined in other VPTs of the query.

Key Terms in this Chapter

Chain Join: Join of the form R 1 (v 1 ,v 2 ) ? R 2 (v 2 ,v 3 ) ? R 3 (v 3 ,v 4 ) ? … ? R n (v n ,v n+1 ) where each VPT R i has an attribute that refers to an attribute in the referenced VPT R i+1 .

Skyline: Set of non-dominated objects.

Join: Operator used to combine information from two or more VPTs.

Dominance: An object a dominates another object b if and only if of a is better than or equal to b on all dimensions of a multidimensional function and a is better than b on at least one dimension.

Physical Operator: Evaluation algorithm that implements a logical operator into a database system.

Entropy Function: A sorting function.

VPT: Vertically Partitioned Table. A VPT is a table whose data are stored as key-value.

Complete Chapter List

Search this Book:
Reset