ANALYSIS OF METHODS FOR REPRESENTING TREE-LIKE STRUCTURES IN A RELATIONAL DATA MODEL

E. Pavlovskyi, I. Yarosh
{"title":"ANALYSIS OF METHODS FOR REPRESENTING TREE-LIKE STRUCTURES IN A RELATIONAL DATA MODEL","authors":"E. Pavlovskyi, I. Yarosh","doi":"10.31474/1996-1588-2023-1-36-17-21","DOIUrl":null,"url":null,"abstract":"\"As you know, the data must be stored in such a way that their sampling takes place with minimal expenditure of time and resources. In most cases, it is convenient and expedient to use the relational data model, which has found its application in relational databases, for data storage and processing. The advantages of this data representation are the fact that the entities are represented in the form of tables, connected to each other by various relationships: \"\"one-to-one\"\", \"\"one-to-many\"\" and \"\"many-to-many\"\". Thus, we have a single system of interconnected entities that represent some subject area. Each entity has a set of fields that have specific data types: numeric, text, date/time, and others. In addition, tables have a key field that uniquely identifies an entry in the table. It is this field that plays an important role in building relationships between tables. This field includes records of related tables, through a foreign key, that they have in their list of fields. With the correct design of such a system, it should correspond to the third normal form. Presenting tree-like structures in the relational data model is a very relevant task today. A typical example of such data is categories, which can be quite a lot with a high level of nesting in each other. The article considers and analyzes the most popular methods of representing tree structures in the relational data model. A typical example of such data is categories, which can be quite a lot with a high level of nesting in each other. Such methods include Adjacency List and Nested Sets. Advantages and disadvantages of these methods were identified. Quantitative indicators of time for data sampling, which are presented in the database by the considered methods, were obtained. On the basis of these indicators, an analysis of the expediency of data presentation by these methods was carried out, depending on some characteristics of nestedness and data volumes. The advantages and disadvantages of the considered methods for representing tree-like structures in the relational data model are revealed. \"","PeriodicalId":104072,"journal":{"name":"Scientific papers of Donetsk National Technical University. Series: Informatics, Cybernetics and Computer Science","volume":"482 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Scientific papers of Donetsk National Technical University. Series: Informatics, Cybernetics and Computer Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.31474/1996-1588-2023-1-36-17-21","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

"As you know, the data must be stored in such a way that their sampling takes place with minimal expenditure of time and resources. In most cases, it is convenient and expedient to use the relational data model, which has found its application in relational databases, for data storage and processing. The advantages of this data representation are the fact that the entities are represented in the form of tables, connected to each other by various relationships: ""one-to-one"", ""one-to-many"" and ""many-to-many"". Thus, we have a single system of interconnected entities that represent some subject area. Each entity has a set of fields that have specific data types: numeric, text, date/time, and others. In addition, tables have a key field that uniquely identifies an entry in the table. It is this field that plays an important role in building relationships between tables. This field includes records of related tables, through a foreign key, that they have in their list of fields. With the correct design of such a system, it should correspond to the third normal form. Presenting tree-like structures in the relational data model is a very relevant task today. A typical example of such data is categories, which can be quite a lot with a high level of nesting in each other. The article considers and analyzes the most popular methods of representing tree structures in the relational data model. A typical example of such data is categories, which can be quite a lot with a high level of nesting in each other. Such methods include Adjacency List and Nested Sets. Advantages and disadvantages of these methods were identified. Quantitative indicators of time for data sampling, which are presented in the database by the considered methods, were obtained. On the basis of these indicators, an analysis of the expediency of data presentation by these methods was carried out, depending on some characteristics of nestedness and data volumes. The advantages and disadvantages of the considered methods for representing tree-like structures in the relational data model are revealed. "
分析在关系数据模型中表示树状结构的方法
“如你所知,数据必须以这样一种方式存储,即他们的抽样发生在最小的时间和资源支出。在大多数情况下,使用关系数据模型进行数据存储和处理是方便和方便的,关系数据模型在关系数据库中已经得到了应用。这种数据表示的优点是实体以表的形式表示,通过各种关系相互连接:“一对一”、“一对多”和“多对多”。因此,我们有一个代表某些主题领域的相互连接的实体的单一系统。每个实体都有一组具有特定数据类型的字段:数字、文本、日期/时间等。此外,表有一个唯一标识表中条目的键字段。这个字段在表之间建立关系时起着重要的作用。这个字段通过一个外键包括相关表的记录,这些记录在它们的字段列表中。在正确设计这种系统的情况下,它应该符合第三范式。在关系数据模型中表示树状结构是当今非常相关的任务。这类数据的一个典型例子是类别,它们可能非常多,彼此之间嵌套程度很高。本文考虑并分析了在关系数据模型中表示树结构的最流行的方法。这类数据的一个典型例子是类别,它们可能非常多,彼此之间嵌套程度很高。这些方法包括邻接表和嵌套集。指出了这些方法的优缺点。通过所考虑的方法,得到了数据库中数据采样时间的定量指标。在这些指标的基础上,根据嵌套性和数据量的一些特征,分析了这些方法表示数据的方便性。揭示了在关系数据模型中表示树状结构所考虑的方法的优缺点。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信