JOURNAL ARTICLE

Cosim‐Gres : Towards Similarity Queries Optimization Inside RDBMS.

  • Published In: Software: Practice & Experience, 2025, v. 55, n. 5. P. 966 1 of 3

  • Database: Applied Science & Technology Source Ultimate 2 of 3

  • Authored By: Eleutério, Igor Alberte R.; de Oliveira, Willian D.; Teixeira, Larissa R.; Vespa, Thiago G.; Silva, William Z.; Traina, Agma Juci M.; Traina, Caetano 3 of 3

Abstract

Introduction: This paper presents CoSIM‐Gres, a new module implemented over Postgres capable of performing exact similarity searches to answer both Range and ‐ queries, using any of three access methods: Sequential Access, the Slim‐tree Metric Access Method (MAM), or the Gist R‐tree. To the best of the authors' knowledge, this is the first system currently capable of performing both types of queries with the possibility of choosing different access methods while maintaining full integration of the similarity‐related syntax with the other SQL statements. Contribution: Our main contribution is an in‐depth comparison of cases when each access method is better for processing similarity queries. It is an essential first step that any attempt to optimize similarity queries within DBMS must consider. Methods: Experiments were performed to compare Slim‐tree with Sequential Access and Gist R‐tree available in Postgres Cube extension, analyzing the impact of varying dimensionality and distance functions on the execution time. Results: They show that the Slim‐tree is up to 18.0 times faster than Sequential Access, whereas the Gist R‐tree may be up to 5.8 times faster than the Slim‐tree, although the Gist R‐tree in Postgres is restricted to index only dimensional data, with at most 100 dimensions, and is applicable only for ‐ queries. The experiments also revealed that the growth of data dimensionality negatively impacts both the MAM and Gist R‐tree performance when compared to the Sequential Access. Also, more complex distance functions reduce the advantage of MAM over Sequential Access. This makes choosing the best option to execute a query a decision that should be carefully evaluated before the query execution. [ABSTRACT FROM AUTHOR]

Additional Information

  • Source:Software: Practice & Experience. 2025/05, Vol. 55, Issue 5, p966
  • Document Type:Article
  • Subject Area:Computer Science
  • Publication Date:2025
  • ISSN:00380644
  • DOI:10.1002/spe.3402
  • Accession Number:184518116
  • Copyright Statement:Copyright of Software: Practice & Experience is the property of Wiley-Blackwell and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)

Looking to go deeper into this topic? Look for more articles on EBSCOhost.