Högskolan i Skövde

his.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • apa-cv
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Svarstider vid databassökningar i fokus: En experimentell jämförelse av PostgreSQL och Elasticsearch
University of Skövde, School of Informatics.
2025 (Swedish)Independent thesis Basic level (degree of Bachelor), 20 credits / 30 HE creditsStudent thesisAlternative title
Database search response times in focus : An experimental comparison of PostgreSQL and Elasticsearch (English)
Abstract [sv]

Detta examensarbete jämför skillnader i svarstider mellan PostgreSQL och Elasticsearch vid två typer av sökningar: fulltextsökning och keywords sökning. Studien utfördes som ett experiment med hjälp av PHP-baserade webbapplikationer och ett gemensamt dataset med information om låtar och artister. Målet var att avgöra vilken databas som är bäst lämpad för olika söktyper. Resultaten visade att Elasticsearch var klart snabbast vid fulltext sökningar, vilket var väntat då databasen är optimerad för textbaserade sökningar via inverterade index. Mer oväntat var att Elasticsearch även presterade bättre vid keyword sökningar, trots att PostgreSQL är en strukturerad relationsdatabas med stöd för tekniker som B-tree och GIN-indexering. Skillnaden i svarstider var störst vid fulltextsökning (144–181 ms), men även märkbar vid keywords sökning (47–51 ms). Slutsatsen är att Elasticsearch ger jämn och snabb prestanda oavsett söktyp, medan PostgreSQL visar på en större variation.

Abstract [en]

This thesis compares response time differences between PostgreSQL and Elasticsearch in two types of search queries: full-text search and keyword search. The study was conducted as an experiment using PHP-based web applications and a shared dataset containing information about songs and artists. The goal was to determine which database is best suited for different types of searches. The results showed that Elasticsearch was clearly faster in full-text searches, which was expected since the database is optimized for text-based queries through inverted indexing. More unexpectedly, Elasticsearch also performed better in keyword searches, despite PostgreSQL being a structured relational database that supports techniques like B-tree and GIN indexing. The difference in response times was most noticeable in full-text searches (144–181 ms), but also evident in keyword searches (47–51 ms). The conclusion is that Elasticsearch provides consistent and fast performance across both search types, while PostgreSQL shows a greater variance across the two.

Place, publisher, year, edition, pages
2025. , p. 43
Keywords [en]
Databaser, PostgreSQL, Elasticsearch, fulltext sökning, keyword sökning, svarstider, musikdata
Keywords [sv]
PostgreSQL, Elasticsearch, fulltext sökning, keyword sökning, svarstider, musikdata
National Category
Information Systems, Social aspects
Identifiers
URN: urn:nbn:se:his:diva-25348OAI: oai:DiVA.org:his-25348DiVA, id: diva2:1976999
Subject / course
Informationsteknologi
Educational program
Web Developer - Programming
Supervisors
Examiners
Note

Det finns övrigt digitalt material (t.ex. film-, bild- eller ljudfiler) eller modeller/artefakter tillhörande examensarbetet som ska skickas till arkivet.

There are other digital material (eg film, image or audio files) or models/artifacts that belongs to the thesis and need to be archived.

Available from: 2025-06-25 Created: 2025-06-25 Last updated: 2025-09-29Bibliographically approved

Open Access in DiVA

fulltext(1832 kB)63 downloads
File information
File name FULLTEXT01.pdfFile size 1832 kBChecksum SHA-512
81c3bec3425065acc30ac18b0a7d42a59581b6ebc879c21e0516a3691b0df7a0e9b779f0e076aab7ee0786dbbf97fef343607c5044a1e1eab41424e0da201e9e
Type fulltextMimetype application/pdf

By organisation
School of Informatics
Information Systems, Social aspects

Search outside of DiVA

GoogleGoogle Scholar
Total: 63 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 105 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • apa-cv
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf