Comparative Analysis of ENUM Syntax Performance in MySQL

  • Edvaldo Cardoso de Abreu IF GOIANO
  • Felipe Ramos Silva Reis IF GOIANO
  • Iasmyn Severo dos Santos IF GOIANO
  • Matheus Vieira da Silva IF GOIANO
  • Adriano Honorato Braga IF GOIANO

Abstract


This study focuses on comparing the execution times of queries using INSERT and SELECT statements with the ENUM data type in MySQL databases. The research analyzes the performance differences between these approaches, with an emphasis on efficiency in categorized datasets. The insertion was performed using the PyMySQL library, while the SELECT queries were executed in MySQL Workbench, offering practical insights into the impact of ENUM on query execution time in real-world scenarios.
Keywords: MySQL, ENUM, performance, query, insertion

References

DOPKE, Luan; ROCKENBACH, Dinei; GRIEBLER, Dalvan. Avaliação de Desempenho para Banco de Dados com Genoma em Nuvem Privada. In: ESCOLA REGIONAL DE ALTO DESEMPENHO DA REGIÃO SUL (ERAD-RS), 21. , 2021, Evento Online. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2021. p. 45-48. ISSN 2595-4164. DOI: 10.5753/eradrs.2021.14771.

MySQL Documentation. The ENUM Type. MySQL 8.0 Reference Manual, 2024. Disponível em: [link]. 20 out. 2024.

SANTOS, Vitor O.; DAL MOLIN, Viviane; OLIVA, Jefferson Tales; POLA, Ives Renê Venturini. Análise de Desempenho em Banco de Dados Temporais Aplicado no Cenário de Dados de Potência Elétrica. In: SIMPÓSIO BRASILEIRO DE BANCO DE DADOS (SBBD), 39. , 2024, Florianópolis/SC. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2024. p. 66-77. ISSN 2763-8979. DOI: 10.5753/sbbd.2024.240532.

SCHWARTZ, B., ZAITSEV, P., & TKACHENKO, V. High Performance MySQL: Optimization, Backups, and Replication. 3ª ed., O'Reilly Media, 2012, 826 p. ISBN: 978-1449314286.

SILBERSCHATZ, A. Database system concepts. [s.l.] New York Mcgraw-Hill Education, 2020.
Published
2024-12-05
DE ABREU, Edvaldo Cardoso; SILVA REIS, Felipe Ramos; DOS SANTOS, Iasmyn Severo; DA SILVA, Matheus Vieira; BRAGA, Adriano Honorato. Comparative Analysis of ENUM Syntax Performance in MySQL. In: REGIONAL SCHOOL ON INFORMATICS OF GOIÁS (ERI-GO), 12. , 2024, Ceres/GO. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2024 . p. 243-246. DOI: https://doi.org/10.5753/erigo.2024.4866.