The Effect of Number of Agents On Optimization of Adaptivity Join Queries in Heterogeneous Distributed Databases
The Effect of Number of Agents On Optimization of Adaptivity Join Queries in Heterogeneous Distributed Databases
The Effect of Number of Agents On Optimization of Adaptivity Join Queries in Heterogeneous Distributed Databases
Abstract–Distributed systems signify data distribution, (A) Incorporating feedback from previous query
association of activities, and controlling the distributed executions for better selectivity/cardinality
components of the system. Distributed systems are mostly used to (B) Parametric techniques to systematically postpone
share the workload or transfer data processing functions to a making certain decisions as late as possible
place nearer to those functions. This important task should be
mentioned in database query optimization. The growing need for
(C) Least excepted cost and by optimization techniques
optimizing query processing in databases has given rise to many which dispenses the possibility
methods of doing this. This article provides a multi-agent system These techniques based on static data details keeping and
for heterogeneous distributed databases by combining own limited amplitude but there are other techniques which
optimization techniques for processing queries in databases and propose new ways via adaptive techniques. The followings
adaptivity. In this system the effect of the number of agents on are two techniques in this field [8]:
optimization of query processing in Heterogeneous distributed (A) Selection ordering technique: selection ordering
databases will be analyzed. In this system an agent has been undertakes the way to exchange given set of commutative
added to make the database adaptable. In this system the filters (selections) to all the tuples of a relation. In this
greatness of the effect of number of agents on optimization of
processing of joined queries has been analyzed.
technique new techniques are presented by using Greedy
techniques and monitoring tuples properties continuously and
Keywords: join ordering, system adaptable, multi-agent adapting processes.
systems, Database. (B) Adaptive JOIN processing: the design and analysis of
adaptive techniques for join queries is more complicated than
I. INTRODUCTION selection ordering the space of execution is much larger and
more complex. This technique divides queries to:
A distributed database is a logical set of associated (B.1) Independent pipelined executions
databases which are in the form of computer network. In fact, (B.2) Dependent pipelined executions
these distributed resources have increased performance, (B.3) Non - pipelined executions
reliability, and accessibility. Distributed databases provide an And presents a solution for each one, But each one of
interface for the user which is shown exclusively as a single pointed techniques has its own problem like parametric query
system to a user and the user can access the data on the optimization, parallelism and needing to large memory
system without knowing where the data are located execution.
physically [2]. The way the system works in responding to Different methods had been offered for optimization of
queries can be effective and can decrease the cost of a join query processing [12]. In the past years one of these
database [9]. The join operator, as a query or part of a query ways is the use of dynamic programming. In this method, by
and as the means by which tables are joined, can also using dynamic programming algorithms, processing of
influence query optimization. The type of priority involved in queries is divided into two groups of optimization and
the ordering of joins can affect the join operation and can execution and then queries are optimized and responded to.
increase the degree of optimization. Finding the degree of And up to now this method has been improved (additions
optimization can be costly and as time-consuming as an np- such as more discoveries, using histograms, revision of
hard problem. [3] command, etc.) but in all cases the major architecture of the
This article has discussed join ordering. This article has system R is similar to others and unfortunately the use of this
attempted to decrease the response time to queries by making method in different and new areas is growing fast [9]; for
them adaptable. In this article the effect of the number of instance in data flows, limited resources, transactions of local
agents on optimization of query processing will be analyzed. queries, etc. [15].
II. EARLIER METHODS Using this method has created limitations for them.
However, other methods can be used for optimization of
Several techniques have been proposed to extend the query query processing in distributed databases. Three general
Optimization process to solve some of these problems [8]: methods have been proposed for optimization of join
18
Journal of Applied Computer Science & Mathematics, no. 15 (7) /2013, Suceava
19
Computer Science Section
20
Journal of Applied Computer Science & Mathematics, no. 15 (7) /2013, Suceava
specific times when the system is not busy. This cost will be
included in further evaluations.
Figure 5 shows the required time for execution of queries
in system's everyday rush hours. By rush hour we mean a
time when many queries are sent to the database to be
executed. The reason we show this figure is that for
adaptability we use queries that are sent to the database in
busy times. Next evaluation is about the comparison of the
number of evaluation agents in a three-agent system. To do
this, the system is made adaptable using the proposed method
Fig. 4: A report of system's everyday response time for adjusted queries and the results are shown in Figures 6 and 7.
(queries sent during different days) in a two-agent system
Figure 6 shows the required time for responding to
adaptable and non-adaptable queries every day. In this chart
the total time needed for execution of adaptable queries in
database and also the time needed for execution of adaptable
queries in non-adaptable mode. It is important to note that in
this chart the cost needed for adaptability has not been
included.
Figure 7, too, shows the required time for execution of
queries in system's everyday rush hours.
The first row of table 1 shows the reduction in time for
responding to adaptable queries and also the reduction in
Fig. 5: A report of system's everyday response time in rush hours in two- time for all the queries set to the two-agent system of the
agent systems database.
TABLE 1: EVALUATION RESULTS
Reduction for
Number of Reduction for all
Row adaptable join
agents queries
queries
1 2 %29 %3
2 3 %31 %3.2
21
Computer Science Section
[2] Reza Ghaemi, Amin Milani Fard, Hamid Tabatabaee, and Mahdi [12] V. Raman, V. Markl, D. Simmen, G. Lohman “Progressive
Sadeghizadeh “Evolutionary Query Optimization for Heterogeneous Optimization in Action”, Demo, VLDB-2004.
istributed Database Systems” PWASET VOLUME 33 SEPTEMBER [13] V. Raman, B Raman, J. Hellerstein “Online Dynamic Reordering for
2008 ISSN 2070-3740 Interactive Data Processing”, VLDB-99
[3] Amol Deshpande, Zachary Ives, and Vijay shankarRaman. “Adaptive [14] S. Babu, DeWitt, J Widom “Content-Based Routing: Different Plans
query processing”. Foundations and Trends in Databases, 1(1), 2007. for Different Data”, VLDB-05
[4] J. Callan, “Distributed information retrieval”. In Advances in [15] Ron Avnur, Joseph M. Hellerstein “ Eddies: Continuously Adaptive
Information Retrieval, W. B. Croft, Ed. Kluwer Academic Query Processing” SIGMOD-2000
Publishers,2000, pp. 127–150. [16] A. Deshpande, C Guestrin “Exploiting Correlated Attributes in
[5] Elnaz zafarani , Mohammad_Reza Feizi_Derakhshi , Hasan Asil, Amir Acquisitional Query Processing”, ICDE-2005
asil “Presenting a New Method for Optimizing Join Queries [17] Antoshenkov “Query Processing in DEC Rdb: Major Issues and
Processing in Heterogeneous Distributed Databases”, WKDD2010, Future Challenges”, IEEE Data Engg. Bull-
Phuket , Thailand , 9-10 January, 2010. [18] Ming-Syan Chen, Philip S. Yu, Kun-Lung WuC. Optimization of
[6] Mohammad_Reza Feizi_Derakhshi , Hasan Asil , Amir Asil,elnaz Parallel Execution for Multi-Join Queries. IEEE Transactions on
zafarani “Practical Software Query Optimizing by Adapting Why and Knowledge and Data Engineering, vol. 6 No. 3, June 1989.
How?” Australian Journal of Basic and Applied Sciences, January,2010 [19] David J. Dewitt, Shahram Ghandeharizadeh, Donovan A. Schneider,
[7] Mohammad_Reza Feizi_Derakhshi, Hasan Asil , Amir Asil,elnaz Allan Bricker, Hui-I Hsiao, and Rick Rasmussen. The Gamma
zafarani “Optimizing Query Processing in Practical Software Database Database Machine Project. IEEE Transactions on Knowledge and Data
by Adapting” WKDD2010, Phuket , Thailand , 9-10 January, 2010. Engineering, 2(1):44--62, 1990.
[8] Mohammad_Reza Feizi_Derakhshi, Hasan Asil, Amir Asil “Proposing [20] C. K. Baru and O. Frieder. Database Operations in a CubeConnected
a New Method for Query Processing Adaption in Data Base “WCSET Multiprocessor System. IEEE Transactions on Computers, 38(6):920--
2009: World Congress on Science, Engineering and Technology Dubai, 927, June 1989
United Arab Emirates VOLUME 37, January 28-30, 2009 ISSN 2070- [21] Remzi H. Arpaci-Dusseau. Run-time adaptation in River. Transactions
3740 on Computer Systems (TOCS),21(1): 36–86, 2003.
[9] J. M. Hellerstein “Lifting the Burden of History from Adaptive Query [22] Ozalp Babaoglu, Lorenzo Alvisi, Alessandro Amoroso, Renzo Davoli,
Processing” , A Deshpande, VLDB-04 and Luigi Alberto Giachini. Paralex: an environment for parallel
[10] Amol Deshpande “An Initial Study of Overheads of Eddies”, programming in distributed systems. pages 178–187, New York, NY,
SIGMOD Record, March 2004. USA, 1992. ACM Press.
[11] T. Urhan, M. Franklin, L. Amsaleg “Cost Based Query Scrambling for
Initial Delays”, SIGMOD-1998.
Hasan Asil works in Department of Computers at Islamic Azad University, Azarshahr Branch. In 2010, he became a Ph.D. Student in
Project Management at Management University in Switzerland. His Area of Interest is Query optimization in database, Software
Development Methodologies, personality and Management in software engineering.
22