diff --git a/chapters/thesis/appendix04_calling_script.sh b/chapters/thesis/appendix04_calling_script.sh index 3d1266c..94258cd 100644 --- a/chapters/thesis/appendix04_calling_script.sh +++ b/chapters/thesis/appendix04_calling_script.sh @@ -62,7 +62,7 @@ pgrp() { pgbadger -X -I -f jsonlog -j 10 -O $pgbadger_out$report_postfix$report_postno $postgres_log_path/postgresql-*.json 2>&1 | tee -a "$outPath" } pgrpres() { - if ["$report_postfix" -eq ""]; then + if [[ "$report_postfix" == "" ]]; then rm -R $pgbadger_out else rm -R $pgbadger_out$report_postfix* diff --git a/chapters/thesis/chapter05.tex b/chapters/thesis/chapter05.tex index 8636eed..e76f008 100644 --- a/chapters/thesis/chapter05.tex +++ b/chapters/thesis/chapter05.tex @@ -67,7 +67,7 @@ Mit dem neuen Aufbau ergeben sich nun neue Messungen. Für den Speicherbedarf wi Speicher der Anwendung beobachtet, sondern die Speichernutzung des Docker-Containers für den Payara-Server. Für die Ausführungszeiten der SQL-Abfragen wurden nur die 2 Hauptabfragen auf der Document-Tabelle, die Abfrage der 400 Dokumente, sowie den letzten und ersten Eintrag der Tabelle. -\mytodos{es müssen die 6 Anfragen sein, documentaddresseeperson, documentcoauthorperson, documentfacsimile und count} +\mytodos{es müssen die 6 Anfragen sein, document, first/last, documentaddresseeperson, documentcoauthorperson, documentfacsimile und count} \begin{table}[h!] \centering @@ -110,17 +110,18 @@ werden. \hline \# & min & avg & max & cnt & sum & davor & danach & diff \\ \hline - 1 & 277 & 469 & 1506 & 7206 & 183 & 764,21 & 859.96 & 95.75 \\ % 183ms - 2 & 228 & 269 & 384 & 6767 & 173 & 848,64 & 908,44 & 59.80 \\ % 356ms - 3 & 224 & 238 & 299 & 6656 & 180 & 898.71 & 949.94 & 51.23 \\ % 535ms - 4 & 214 & 235 & 325 & 6671 & 179 & 936.70 & 999.49 & 62.79 \\ % 714ms + 1 & 338 & 567 & 1853 & 7418 & 288 & 874 & 923 & 49 \\ % 7418 - 288 ms (145+ 42+ 40+ 24+18+ 8+ 7+ 4) (#2-8,12) + 2 & 235 & 290 & 460 & 6852 & 258 & 923 & 926 & 3 \\ % 14270 - 546 ms (282+ 81+ 70+ 47+33+14+11+ 8) (#2-9) + 3 & 225 & 254 & 313 & 6836 & 276 & 927 & 1018 & 90 \\ % 21106 - 822 ms (430+120+ 99+ 77+49+20+16+11) (#2-9) + 4 & 235 & 289 & 403 & 6839 & 276 & 1018 & 1018 & 0 \\ % 27945 - 1098 ms (569+160+137+ 99+68+26+22+17) (#2-9) + 5 & 193 & 265 & 359 & 6879 & 276 & 1025 & 1140 & 115 \\ % 34824 - 1374 ms (704+202+171+128+86+34+27+22) (#2-9) \hline \end{tabular} \caption{Messung mit OpenJPA-Cache und Größe auf 1000} \label{tbl:measure-ojpa-active} \end{table} -Bei einer erhöhten Cache-Größe, zeigt sich auf den ersten Blick ein noch besseres Bild ab, wie in +Bei einer erhöhten Cache-Größe, von 1000 auf 10000, zeigt sich auf den ersten Blick ein noch besseres Bild ab, wie in \ref{tbl:measure-ojpa-active-bigger} ersichtlich ist. Der erste Aufruf entspricht der Laufzeit mit geringerer Cache-Größe, aber schon die Anfragen an die Datenbank gehen drastisch zurück. Bei den weiteren Aufrufen werden im Schnitt nun nur noch 6 Anfragen pro Seitenaufruf an die Datenbank gestellt, wodurch die Laufzeit im Schnitt nochmal um 100 ms @@ -134,10 +135,11 @@ beschleunigt werden konnte. \hline \# & min & avg & max & cnt & sum & davor & danach & diff \\ \hline - 1 & 178 & 347 & 1507 & 1419 & 214 & 752.10 & 862.38 & 110,28 \\ % 214ms - 2 & 126 & 152 & 232 & 60 & 168 & 853.72 & 875.21 & 21.49 \\ % 382ms - 3 & 130 & 134 & 142 & 60 & 172 & 880.08 & 880.94 & 0,86 \\ % 554ms - 4 & 125 & 128 & 135 & 60 & 177 & 865.36 & 897.96 & 32.60 \\ % 731ms + 1 & 151 & 368 & 1904 & 1422 & 208 & 878.1 & 919.9 & 41.8 \\ % 1422 - 208 ms (133+ 40+ 23+9+2+1) (#2,4-6,10,12) + 2 & 133 & 143 & 159 & 60 & 205 & 919.8 & 921.0 & 1.2 \\ % 1482 - 413 ms (274+ 80+ 47+9+2+1) (#2-3,5,6,10,12) + 3 & 120 & 126 & 132 & 60 & 199 & 922.8 & 924.1 & 1.3 \\ % 1542 - 612 ms (412+119+ 69+9+2+1) (#2,3,5,6,10,12) + 4 & 120 & 124 & 128 & 60 & 214 & 924.1 & 925.4 & 1.3 \\ % 1602 - 826 ms (550+168+ 96+9+2+1) (#2-4,6,10,12) + 5 & 109 & 114 & 131 & 60 & 197 & 926.1 & 926.8 & 0.7 \\ % 1662 - 1023 ms (683+209+119+9+2+1) (#2-4,6,10,12) \hline \end{tabular} \caption{Messung mit OpenJPA-Cache und Größe auf 10000} @@ -404,6 +406,7 @@ FROM document d LEFT JOIN sitecity sc ON sc.id = d.city_id; \end{lstlisting} +% document, first/last, documentaddresseeperson, documentcoauthorperson, documentfacsimile und count \begin{table}[h!] \centering \begin{tabular}{|r|r|r|r|r|r|r|r|} diff --git a/thesis-beamer.pdf b/thesis-beamer.pdf index 3f62a73..8a26db6 100644 Binary files a/thesis-beamer.pdf and b/thesis-beamer.pdf differ diff --git a/thesis-beamer.tex b/thesis-beamer.tex index a81e3ad..1d81a92 100644 --- a/thesis-beamer.tex +++ b/thesis-beamer.tex @@ -103,30 +103,10 @@ --- OpenJPA --- \end{frame} -\begin{frame} - \frametitle{Caching in JPA} -\end{frame} - -\begin{frame} - \frametitle{Caching in EJB} -\end{frame} - -\begin{frame} - \frametitle{Abfragen mit JPQL} -\end{frame} - -\begin{frame} - \frametitle{Abfragen mit Criteria API} -\end{frame} - \begin{frame} \frametitle{Abfragen über materialized views} \end{frame} -\begin{frame} - \frametitle{Cached Queries} -\end{frame} - %% -- SLIDE -- REFERENCES % hier alle Keys aus der BIB einfügen, die mit dargestellt werden sollen \nocite{IbmOpenJPACaching2023,PostgresPro:Chap20.4:2023} diff --git a/thesis.pdf b/thesis.pdf index 7282970..0c0932d 100644 Binary files a/thesis.pdf and b/thesis.pdf differ