TO RESEARCH THE EFFECTIVENESS OF TEST DATA GENERATION METHODS IN RELATIONAL DATABASES
DOI:
https://doi.org/10.26906/SUNZ.2024.2.127Keywords:
Database, Microsoft SQL Server, Testing, Database generation, T-SQL, Optimization, Recursive queries, Temporary Tables, Generation with LoopsAbstract
The article analyzes three main methods of generating test data for relational databases: cyclic, based on Common Table Expressions (CTE) and using temporary tables. Experimental testing was carried out in the MS SQL Server environment on the example of database tables of a trading company. A comparison was made by key metrics of generation efficiency - generation time, system resource utilization, and scalability of the test database tables. The results of the study substantiated the effectiveness of the recursive CTE method for different volumes and data structures. Recommendations for choosing test suite generation methods in accordance with the requirements of database projects, in particular when using services for working with relational databases on cloud platforms, are given.Downloads
References
Synthetic Data Generation [Електронний ресурс] // AI Multiple. – Режим доступу: https://research.aimultiple.com/synthetic-data-generation/. – Дата звернення: 02.03.2024.
Unit Testing: Generate Test Data Sets SQL Server Database Applications [Електронний ресурс] // MSSQLTips. – Режим доступу: https://www.mssqltips.com/sqlservertip/7766/unit-testing-generate-test-data-sets-sql-server-database-applications/.
Houkjær K., Torp K., Wind R. Simple and Realistic Data Generation // Very Large Data Base Endowment Inc. (VLDB Endowment). 2006. С. 1243-1246. – Режим доступу: https://www.vldb.org/conf/2006/p1243-houkjar.pdf /.
WHILE (Transact-SQL) [Електронний ресурс] // Microsoft Learn. – Режим доступу: https://learn.microsoft.com/ru-ru/sql/t-sql/language-elements/while-transact-sql?view=sql-server-ver16.
Common Table Expressions (CTEs) vs Temporary Tables in BigQuery [Електронний ресурс] // Medium. – Режим доступу: https://medium.com/@sahaabhik9/common-table-expressions-ctes-vs-temporary-tables-in-bigquery-f6057e688f01.
Сергій Мінухін, Мирослав Башкіров. Моделювання роботи з базами даних торгівельних компаній на хмарних платформах // Інформаційні системи та технології: матеріали 12-ої Міжнародної науково-технічної конференції. Частина 2. Молодіжна секція, Харків, (28 листопада 2023 – 01 грудня 2023 р.) / наук. ред. В.В. Безкоровайний, L. Petryshyn, З.В. Дудар, Ю.В. Міщеряков.: ХНУРЕ, 2023. – С.45–47.
Common Table Expressions (CTE) [Електронний ресурс] // dbschema.com. 2023. – Режим доступу: https://dbschema.com/2023/07/02/sqlserver/common-table-expressions/.
Stuparu D., Petrescu M. Common Table Expression: Different database systems approach. Journal of Computer-Mediated Communication. 2009. Vol. 6, No. 3. – Режим доступу: https://www.researchgate.net/publication/259441876_Common_Table_Expression_Different_database_systems_approach.
Which are more performant: CTE or Temporary Tables? [Електронний ресурс] // Stack Overflow. – Режим доступу: https://stackoverflow.com/questions/690465/which-are-more-performant-cte-or-temporary-tables.
T-SQL WHILE Loop – GOTO Loop Time Series Data [Електронний ресурс] // MSSQLTips. – Режим доступу: https://www.mssqltips.com/sqlservertip/7139/t-sql-while-loop-goto-loop-time-series-data/.
WITH common_table_expression (Transact-SQL) [Електронний ресурс] // Microsoft Learn. – Режим доступу: https://learn.microsoft.com/en-us/sql/t-sql/queries/with-common-table-expression-transact-sql?view=sql-server-ver16.
SQL Temp Table: How to Create a Temporary SQL Table [Електронний ресурс] // freeCodeCamp.org. – Режим доступу: https://www.freecodecamp.org/news/sql-temp-table-how-to-create-a-temporary-sql-table/.
Minukhin S. Performance study of the DTU model for relational databases on the Azure platform // Сучасний стан наукових досліджень та технологій в промисловості. – 2022. – №. 1 (19). – С. 27-39. https://doi.org/10.30837/ITSSI.2022.19.027.