A COMPARATIVE ANALYSIS OF THE USE OF REGEXP AND LIKE OPERATOR IN MYSQL
Keywords:
RegExp, LIKE operator, MySQL, performance, BRE, EREAbstract
This research paper compares the performance of RegExp and LIKE operators in MySQL for searching text data. Research shows which of these two techniques provides better search performance and efficiency. The paper includes an overview of RegExp and LIKE operators, their syntax and characteristics. The research methodology includes the definition of test scenarios, the selection of test data and the implementation of the experimental environment. Parameters considered include execution time as well as implementation complexity. Analysis of the results includes comparing the advantages, disadvantages and functionality of both approaches. Different test scenarios were tested on databases of ten thousand, one hundred thousand and one million rows of user data, in order to evaluate how the number of data being searched affects execution times. The aim of the research is to provide guidelines for choosing the most efficient tool for searching textual data in MySQL. The results of this research will be useful to developers in making decisions about the selection of textual data search tools.
References
Barnett, B. (2023, July 25). Regular Expressions, Retrieved from https://www.grymoire.com/Unix/Regular.html
Barnhill, B. (2019, December 9). How Regex in SQL Works. Retrieved from https://dataschool.com/how-to-teach-people-sql/how-regex-works-in-sql/
Erwig, M. & Gopinath, R. (2012). Explanations for Regular Expressions. 7212. 394-408. 10.1007/978-3-642-28872-2_27.
Friedl, J. (2006). Mastering Regular Expressions: Understand Your Data and Be More Productive. O'Reilly Media
Kahrs, S. (1999). Regular Expressions - a Graphical User Interface.
Nichter, D. (2022). Efficient MySQL Performance: Best Practices and Techniques. O'Reilly Media
Smith, N. (2023, April 27). MySQL LIKE Operator: 7 Examples and Best Practices. Retrieved from https://blog.devart.com/mysql-like-tutorial.html
SyBooks Online (2012, January 1). SQL Anyware 12. Retrieved from https://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.sqlanywhere.12.0.1/dbreference/like-regexp-similarto.html
Vukićević, N. (2010, October 23). Regularni izrazi - Napredna pretraga teksta. Retrieved from https://www.codeblog.rs/clanci.php?p=regularni_izrazi
Walilko, A. (2023, August 21). What are Regular Expressions. Retrieved from https://www.liquidweb.com/kb/what-are-regular-expressions/