Workload Optimization by Horizontal Aggregation in SQL for Data Mining Analysis

Authors(2) :-Prasanna M. Rathod, Prof. Dr. Anjali B. Raut

Preparing a data set for analysis is generally the most time consuming task in a data mining project, requiring many complex SQL queries, joining tables, and aggregating columns. Existing SQL aggregations have limitations to prepare data sets because they return one column per aggregated group. In general, a significant manual effort is required to build data sets, where a horizontal layout is required. We propose simple, yet powerful, methods to generate SQL code to return aggregated columns in a horizontal tabular layout, returning a set of numbers instead of one number per row. This new class of functions is called horizontal aggregations. Horizontal aggregations build data sets with a horizontal denormalized layout (e.g., point-dimension, observation variable, instance-feature), which is the standard layout required by most data mining algorithms. We propose three fundamental methods to evaluate horizontal aggregations: ? CASE: Exploiting the programming CASE construct; ? SPJ: Based on standard relational algebra operators (SPJ queries); ? PIVOT: Using the PIVOT operator, which is offered by some DBMSs. Experiments with large tables compare the proposed query evaluation methods. Our CASE method has similar speed to the PIVOT operator and it is much faster than the SPJ method. In general, the CASE and PIVOT methods exhibit linear scalability, whereas the SPJ method does not. For query optimization the distance computation and nearest cluster in the k-means are based on SQL. Workload balancing is the assignment of work to processors in a way that maximizes application performance. The process of load balancing can be generalized into four basic steps: 1. Monitoring processor load and state; 2. Exchanging workload and state information between processors; 3. Decision making; 4. Data migration. The decision phase is triggered when the load imbalance is detected to calculate optimal data redistribution. In the fourth and last phase, data migrates from overloaded processors to under-loaded ones.

Authors and Affiliations

Prasanna M. Rathod
M.E. (CSE), H.V.P.M. COET, SGB Amravati University, Maharashtra, India
Prof. Dr. Anjali B. Raut
Professor and Head of Department, H.V.P.M. COET, SGB Amravati University, Maharashtra, India

SQL, CASE, SPJ, PIVOT, Horizontal Aggregation

  1. J.A. Blakeley, V. Rao, I. Kunen, A. Prout, M. Henaire, and C. Kleinerman. .NET database programmability and extensibility in Microsoft SQL Server. In Proc. ACM SIGMOD Conference, pages 1087–1098, 2008.
  2. C. Cunningham, G. Graefe, and C.A. Galindo-Legaria. PIVOT and UNPIVOT: Optimization and execution strategies in an RDBMS. In Proc. VLDB Conference, pages 998–1009, 2004.
  3. H. Garcia-Molina, J.D. Ullman, and J. Widom. Database Systems: The Complete Book. Prentice Hall, 1st edition, 2001.
  4. G. Graefe, U. Fayyad, and S. Chaudhuri. On the efficient gathering of sufficient statistics for classification from large SQL databases. In Proc. ACM KDD Conference, pages 204–208, 1998.
  5. J. Han and M. Kamber. Data Mining: Concepts and Techniques. Morgan Kaufmann, San Francisco, 1st edition, 2001.

Publication Details

Published in : Volume 7 | Issue 2 | March-April 2021
Date of Publication : 2021-04-30
License:  This work is licensed under a Creative Commons Attribution 4.0 International License.
Page(s) : 304-309
Manuscript Number : CSEIT217263
Publisher : Technoscience Academy

ISSN : 2456-3307

Cite This Article :

Prasanna M. Rathod, Prof. Dr. Anjali B. Raut, "Workload Optimization by Horizontal Aggregation in SQL for Data Mining Analysis", International Journal of Scientific Research in Computer Science, Engineering and Information Technology (IJSRCSEIT), ISSN : 2456-3307, Volume 7, Issue 2, pp.304-309, March-April-2021. Available at doi : https://doi.org/10.32628/CSEIT217263
Journal URL : https://res.ijsrcseit.com/CSEIT217263 Citation Detection and Elimination     |      |          | BibTeX | RIS | CSV

Article Preview