Academia
Diploma thesis 2024Software Engineeringpodatkovna baza · PostgreSQL · Redis

Comparison of PostgreSQL and Redis database performance for data analysis using artificial intelligence

The aim of the research was to determine which database is more suitable for specific tasks such as fast data filtering, training artificial intelligence models, and stability and reliability of results.

Michel VelkovRačunalništvo in informatika · module Programsko inženirstvo · supervisor mag. Ervin Schaff · defence december 2024
In brief

The project in five facts.

AuthorMichel Velkov
Supervisormag. Ervin Schaff
ModuleSoftware EngineeringComputer Science and Informatics
Employer / clientAcademia
Year2024december 2024
About the project

Challenge, approach and results.

The diploma thesis analysed the performance of two popular databases, PostgreSQL and Redis, in the context of artificial intelligence and data processing. The aim of the research was to determine which database is more suitable for specific tasks such as fast data filtering, training artificial intelligence models, and stability and reliability of results. Four hypotheses were formulated and tested through experimental comparison of query speeds, model training times, and result stability.

Solution and method

The diploma thesis analysed the performance of two popular databases, PostgreSQL and Redis, in the context of artificial intelligence and data processing.

Results

The aim of the research was to determine which database is more suitable for specific tasks such as fast data filtering, training artificial intelligence models, and stability and reliability of results. Four hypotheses were formulated and tested through experimental comparison of query speeds, model training times, and result stability. The results confirmed that Redis is very fast for simple queries such as lookup operations, thanks to its architecture based on in-memory data storage.

However, it was not faster for complex filtering queries, as claimed by hypothesis 2. PostgreSQL demonstrated better performance when processing complex queries, where execution time was significantly shorter due to advanced optimisation and use of indices. This shows that PostgreSQL is more suitable for scenarios requiring filtering of large amounts of data with complex conditions.

For training artificial intelligence models, Redis showed an advantage with simpler models such as Ridge regression, as training speed slightly exceeded PostgreSQL. For more complex models such as random forest and gradient boosting, PostgreSQL and Redis proved to be equivalent, which contradicts hypothesis 4 about greater PostgreSQL stability. The research also showed that PostgreSQL enjoys greater community support and higher demand in the labour market, whilst Redis leads in open-source projects on GitHub.

Based on these findings, PostgreSQL is recommended for applications requiring extensive data processing, and Redis for applications where speed is crucial. In addition to these key findings, the impact of database choice on overall application architecture and scalability was examined. It was found that PostgreSQL offers better scaling options in environments where data requirements change dynamically, whilst Redis enables easier integration into real-time systems due to its exceptional speed.

These additional insights enable more informed decision-making when selecting a database according to specific project needs and will contribute to greater efficiency and reliability of final solutions.

Strežniška soba s podatkovnimi bazami in omrežno opremo
Diploma thesis

Full text

PDF of the diploma thesis (public).

Diploma thesis (PDF) ↓
Related

Module, programme and stories.

Module Programsko inženirstvo

Your diploma project for a real company.

A diploma thesis at Academia solves a challenge from a company – often the one where you do your 800 hours of placement. Read about the Programsko inženirstvo module or book a consultation.

800 hoursof placement in a company
97 %of graduates employed
Module Programsko inženirstvo →Apply 2027/28All diploma projects
Before you go

We will send you the curriculum, the study path and your funding and scholarship options.

No calls, no spam. One e-mail with everything you need to decide, and an invitation to a lecture.

By sending the form you agree that Academia may contact you by e-mail or phone. Privacy · unsubscribe at any time.