Skip to main content

Dynamic Cost Ant Colony Algorithm for Optimize Distributed Database Query

  • Conference paper
  • First Online:
Proceedings of the International Conference on Artificial Intelligence and Computer Vision (AICV2020) (AICV 2020)

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 1153))

Abstract

Optimizing query in distributed database is considered as the most important part of a database system. The optimizer tries to find an optimal join order which reduces the query execution cost. Many factors may affect the execution cost of a query, including communication costs, resources, and access to large distributed data sets. When the number of relations and number of joins in a query increases, the complexity of the optimizer also increases. The success of query execution heavily influenced by the search method which is performed using the query optimizer. Processing of queries is considered as NP-hard problem and many researchers are focused on this problem in recent years. Researches are trying to build an appropriate algorithm to seek an optimal solution especially when the size of the database increases. In this paper, an ant colony algorithm as one of the hybrid strategy of evolutionary algorithms is utilized to find a solution for join query optimization problem in the distributed database systems. Unlike traditional ant colony-based query optimization techniques that based on static cost, the suggested model relies on dynamic cost which calculates the cost while the execution plan is built. Using this strategy, the algorithm aims to find an optimal join order which minimizes the total execution time. Experimental results show that the proposed model can handle different number of join entities. Also, the algorithm is affected by the number of ants used. Better results are obtained in case of large joined if the number of used ants increased.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Ramakrishnan, R.: Databases Management Systems, 3rd edn. McGraw-Hill Inc., New York (2003)

    Google Scholar 

  2. Tiwari, M.P., Chande, S.V.: Query optimization strategies in distributed databases. Int. J. Adv. Eng. Sci. 3(3), 23–29 (2013)

    Google Scholar 

  3. Dökeroğlu, T., Coşar, A.: Dynamic programming with ant colony optimization metaheuristic for optimization of distributed database queries. In: Proceedings of 26th International Symposium on Computer and Information, pp. 107–113. Springer, London (2011)

    Google Scholar 

  4. Sharma, M., Singh, G., Singh, R.: A review of different cost-based distributed query optimizers. Progr. Artif. Intell. 8(1), 45–62 (2019)

    Article  Google Scholar 

  5. Hameurlain, A., Morvan, F.: Evolution of query optimization methods. Lect. Note Comput. Sci. 5740, 211–242 (2009)

    Article  Google Scholar 

  6. Chen, M., Yu, P.: Using join operations as reducers in distributed query processing. In: Proceedings of 2nd International Symposium on Databases in Parallel and Distributed System, July 1990

    Google Scholar 

  7. Pramanik, S., Vineyard, D.: Optimizing join queries in distributed database. IEEE Trans. Softw. Eng. 14, 1391–1426 (1988)

    Article  MathSciNet  MATH  Google Scholar 

  8. Rothnie, J.B., Bernstein, P.A., Fox, S.: Introduction to a system for distributed database. ACM Trans. Database Syst. 5(1), 1–17 (1980)

    Article  Google Scholar 

  9. Aljanaby, A., Abuelrub, E., Odeh, M.: A Survey of distributed query optimization. Int. Arab J. Inform. Technol. 2(1), 48–57 (2005)

    Google Scholar 

  10. Yannis, Y.C.K., Ioannidis, E.: Randomized algorithms for optimizing large join queries. ACM Sigmod Rec. 19(2), 312–321 (1990)

    Article  Google Scholar 

  11. Horng, J.T., Kao, C.Y., Jhiune, B.: A Genetic algorithm for database query optimization. In: Proceedings of the First IEEE Conference on Evolutionary Computation, Orlando, FL, USA, pp. 432–444 (1994)

    Google Scholar 

  12. Sevinc, E., Cosar, A.: An evolutionary genetic algorithm for optimization of distributed database queries. Comput. J. 54(5), 717–725 (2010)

    Article  MATH  Google Scholar 

  13. Sukheja, D., Singh, U.: A Novel approach of query optimization for distributed database system. Int. J. Comput. Sci. 8(4), 307–312 (2011). No. 1

    Google Scholar 

  14. Dorigo, M., Birattari, M., Stützle, T.: Ant colony optimization. IEEE Comput. Intell. Mag. 1(4), 28–39 (2006)

    Article  Google Scholar 

  15. Dorigo, M., Stuzle, T.: Ant Colony Optimization. MIT Press, Cambridge (2004)

    Book  MATH  Google Scholar 

  16. Kossmann, D.: The state of art in distributed query optimization. ACM Comput. Surv. 32, 422–469 (2000)

    Article  Google Scholar 

  17. Kossmann, D., Stocker, K.: Iterative dynamic programming: a new class of query optimization algorithm. ACM Trans. Database Syst. 25, 43–82 (2000)

    Article  Google Scholar 

  18. Steinbrunn, M., Moerkotte, G., Kemper, A.: Heuristic and randomized optimization for the join-ordering problem. Int. J. Very Large Data Bases 6(3), 191–208 (1997)

    Article  Google Scholar 

  19. Zhou, Z.: Using heuristics and genetic algorithms for largescale database query optimization. J. Inform. Comput. Sci. 2(4), 261–280 (2007)

    Google Scholar 

  20. Rho, S., March, S.T.: Optimizing distributed join queries: a genetic algorithm approach. Ann. Oper. Res. 71, 199–228 (1997)

    Article  MATH  Google Scholar 

  21. Li, N., Liu, Y., Dong, Y., et al.: Application of ant colony optimization algorithm to multi-join query optimization. In: Proceedings of the 3rd International Symposium on Advances in Computation and Intelligence. Springer, Wuhan (2008)

    Google Scholar 

  22. Golshanara, L., Rankoohi, S.M.T.R., Shah-Hosseini, H.: A multi-colony ant algorithm for optimizing join queries in distributed database systems. Knowl. Inform. Syst. 39(1), 175–206 (2014)

    Article  Google Scholar 

  23. Tiwari, P., Chande, S.: Optimal ant and join cardinality for distributed query optimization using ant colony optimization algorithm. In: Proceedings of the 2nd International Symposium on Emerging Trends in Expert Applications and Security, Singapore, February 2019

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Sayed A. Mohsin , Saad M. Darwish or Ahmed Younes .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Mohsin, S.A., Darwish, S.M., Younes, A. (2020). Dynamic Cost Ant Colony Algorithm for Optimize Distributed Database Query. In: Hassanien, AE., Azar, A., Gaber, T., Oliva, D., Tolba, F. (eds) Proceedings of the International Conference on Artificial Intelligence and Computer Vision (AICV2020). AICV 2020. Advances in Intelligent Systems and Computing, vol 1153. Springer, Cham. https://doi.org/10.1007/978-3-030-44289-7_17

Download citation

Publish with us

Policies and ethics