-
Global information
- Generated on Sun Mar 15 06:01:18 2026
- Log file: /var/log/postgresql/postgresql-2026-03-06_225012.csv, ..., /var/log/postgresql/postgresql-2026-03-15_000000.csv
- Parsed 164,229 log entries in 1m17s
- Log start from 2026-03-10 00:00:01 to 2026-03-10 23:59:01
-
Overview
Global Stats
- 33 Number of unique normalized queries
- 17,325 Number of queries
- 3h40m26s Total query duration
- 2026-03-10 00:00:01 First query
- 2026-03-10 23:59:01 Last query
- 12 queries/s at 2026-03-10 20:19:01 Query peak
- 3h40m26s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 3h40m26s Execute total duration
- 28 Number of events
- 6 Number of unique normalized events
- 12 Max number of times the same event was reported
- 0 Number of cancellation
- 73 Total number of automatic vacuums
- 160 Total number of automatic analyzes
- 5 Number temporary file
- 66.12 MiB Max size of temporary file
- 66.12 MiB Average size of temporary file
- 13,816 Total number of sessions
- 3 sessions at 2026-03-10 07:57:07 Session peak
- 9h21m12s Total duration of sessions
- 2s437ms Average duration of sessions
- 1 Average queries per session
- 957ms Average queries duration per session
- 1s479ms Average idle time per session
- 13,819 Total number of connections
- 26 connections/s at 2026-03-10 21:21:22 Connection peak
- 3 Total number of databases
SQL Traffic
Key values
- 12 queries/s Query Peak
- 2026-03-10 20:19:01 Date
SELECT Traffic
Key values
- 2 queries/s Query Peak
- 2026-03-10 11:06:56 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 12 queries/s Query Peak
- 2026-03-10 20:19:01 Date
Queries duration
Key values
- 3h40m26s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Mar 10 00 720 0ms 0ms 0ms 0ms 0ms 0ms 01 721 0ms 986ms 477ms 11s834ms 11s834ms 11s834ms 02 720 986ms 986ms 986ms 11s834ms 11s834ms 11s834ms 03 720 986ms 986ms 986ms 11s834ms 11s834ms 11s834ms 04 720 986ms 986ms 986ms 11s834ms 11s834ms 11s834ms 05 720 986ms 986ms 986ms 11s834ms 11s834ms 11s834ms 06 722 639ms 986ms 979ms 11s834ms 11s834ms 13s146ms 07 720 639ms 639ms 639ms 7s670ms 7s670ms 7s670ms 08 726 639ms 709ms 641ms 7s670ms 7s976ms 10s398ms 09 722 616ms 664ms 656ms 7s976ms 7s976ms 9s256ms 10 729 530ms 1s604ms 819ms 11s601ms 11s601ms 13s336ms 11 728 614ms 2s138ms 693ms 9s207ms 17s98ms 25s657ms 12 720 1s409ms 1s409ms 1s409ms 16s912ms 16s912ms 16s912ms 13 721 538ms 1s409ms 944ms 16s912ms 16s912ms 17s451ms 14 721 538ms 1s649ms 558ms 6s460ms 6s460ms 19s792ms 15 727 535ms 1s649ms 1s194ms 18s745ms 18s745ms 21s338ms 16 722 623ms 1s421ms 1s21ms 17s60ms 17s60ms 18s346ms 17 720 623ms 623ms 623ms 7s480ms 7s480ms 7s480ms 18 720 623ms 623ms 623ms 7s480ms 7s480ms 7s480ms 19 720 623ms 623ms 623ms 7s480ms 7s480ms 7s480ms 20 720 623ms 623ms 623ms 7s480ms 7s480ms 7s480ms 21 721 593ms 623ms 605ms 7s480ms 7s480ms 8s74ms 22 720 593ms 593ms 593ms 7s125ms 7s125ms 7s125ms 23 725 539ms 1s956ms 647ms 7s125ms 15s973ms 15s973ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Mar 10 00 0 0 0ms 0ms 0ms 0ms 01 0 0 0ms 0ms 0ms 0ms 02 0 0 0ms 0ms 0ms 0ms 03 0 0 0ms 0ms 0ms 0ms 04 0 0 0ms 0ms 0ms 0ms 05 0 0 0ms 0ms 0ms 0ms 06 2 0 655ms 0ms 0ms 0ms 07 0 0 0ms 0ms 0ms 0ms 08 6 0 683ms 0ms 0ms 1s374ms 09 2 0 639ms 0ms 0ms 0ms 10 8 0 725ms 0ms 0ms 2s31ms 11 7 0 904ms 0ms 0ms 1s424ms 12 0 0 0ms 0ms 0ms 0ms 13 1 0 538ms 0ms 0ms 0ms 14 0 0 0ms 0ms 0ms 0ms 15 6 0 758ms 0ms 0ms 1s421ms 16 2 0 643ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms 22 0 0 0ms 0ms 0ms 0ms 23 0 5 1s266ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Mar 10 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 1 0 0 986ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Mar 10 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Mar 10 00 244 0.07/s 01 247 0.07/s 02 247 0.07/s 03 250 0.07/s 04 247 0.07/s 05 244 0.07/s 06 798 0.22/s 07 1,079 0.30/s 08 1,237 0.34/s 09 891 0.25/s 10 956 0.27/s 11 851 0.24/s 12 1,048 0.29/s 13 1,057 0.29/s 14 1,002 0.28/s 15 1,000 0.28/s 16 427 0.12/s 17 305 0.08/s 18 249 0.07/s 19 303 0.08/s 20 260 0.07/s 21 383 0.11/s 22 247 0.07/s 23 247 0.07/s Day Hour Count Average Duration Average idle time Mar 10 00 248 2m10s 2m10s 01 247 55ms 0ms 02 247 50ms 0ms 03 250 50ms 0ms 04 247 49ms 0ms 05 244 50ms 0ms 06 798 86ms 0ms 07 1,079 108ms 0ms 08 1,235 112ms 0ms 09 891 95ms 0ms 10 956 126ms 0ms 11 848 110ms 0ms 12 1,048 105ms 0ms 13 1,057 116ms 0ms 14 1,002 148ms 0ms 15 1,000 143ms 0ms 16 427 137ms 0ms 17 305 56ms 0ms 18 249 50ms 0ms 19 303 53ms 0ms 20 260 49ms 0ms 21 381 79ms 0ms 22 247 49ms 0ms 23 247 97ms 0ms -
Connections
Established Connections
Key values
- 26 connections Connection Peak
- 2026-03-10 21:21:22 Date
Connections per database
Key values
- zemm_monitoring Main Database
- 13,819 connections Total
Connections per user
Key values
- labanimal Main User
- 13,819 connections Total
-
Sessions
Simultaneous sessions
Key values
- 3 sessions Session Peak
- 2026-03-10 07:57:07 Date
Histogram of session times
Key values
- 13,395 0-500ms duration
Sessions per database
Key values
- zemm_monitoring Main Database
- 13,816 sessions Total
Sessions per user
Key values
- labanimal Main User
- 13,816 sessions Total
Sessions per host
Key values
- ::1 Main Host
- 13,816 sessions Total
Sessions per application
Key values
- Main Application
- 13,816 sessions Total
Application Count Total Duration Average Duration 10,141 14m44s 87ms DBeaver 25.3.4 - Main 'zemm_produktiv_7' 1 2h14m25s 2h14m25s DBeaver 25.3.4 - Main 'zemm_produktiv_8' 1 2h14m25s 2h14m25s DBeaver 25.3.4 - SQLEditor 'Script-230.sql' 1 2h14m25s 2h14m25s DBeaver 25.3.4 - SQLEditor 'Script-231.sql' 1 2h14m25s 2h14m25s _backend_wean_api.php_litter_id_10130579_zemm_produktiv_8_local 2 271ms 135ms _backend_wean_api.php_litter_id_10131350_zemm_produktiv_8_local 1 130ms 130ms _backend_wean_api.php_litter_id_10131374_zemm_produktiv_8_local 2 276ms 138ms _backend_wean_api.php_litter_id_10131416_zemm_produktiv_8_local 2 272ms 136ms _backend_wean_api.php_litter_id_10131436_zemm_produktiv_8_local 2 277ms 138ms _backend_wean_api.php_litter_id_10131500_zemm_produktiv_8_local 5 691ms 138ms _backend_wean_api.php_litter_id_10131514_zemm_produktiv_8_local 3 414ms 138ms _backend_wean_api.php_litter_id_10131560_zemm_produktiv_8_local 1 138ms 138ms _backend_wean_api.php_litter_id_10131594_zemm_produktiv_8_local 1 135ms 135ms _backend_wean_api.php_litter_id_10131605_zemm_produktiv_8_local 7 957ms 136ms _backend_wean_api.php_litter_id_10131611_zemm_produktiv_8_local 4 553ms 138ms _desktop__zemm_produktiv_8_localhost_5432 9 574ms 63ms _desktop_index.php_cage_name_61_2A_unweaned_only_true_val4_anim 1 95ms 95ms _desktop_index.php_cages_name_63_2A_cages_empty__25_val4_cages_ 1 216ms 216ms _desktop_index.php_command_animals_edit_subcommand_init_id_1027 4 378ms 94ms _desktop_index.php_command_animals_edit_subcommand_init_id_1028 1 99ms 99ms _desktop_index.php_command_animals_edit_subcommand_init_id_1029 3 285ms 95ms _desktop_index.php_command_animals_litters_edit_subcommand_init 1 101ms 101ms _desktop_index.php_command_animals_subcommand_init_zemm_produkt 13 600ms 46ms _desktop_index.php_command_cages_subcommand_init_zemm_produktiv 2 92ms 46ms _desktop_index.php_command_home_subcommand_init_zemm_produktiv_ 2 183ms 91ms _desktop_index.php_command_login_subcommand_init_zemm_produktiv 262 8s300ms 31ms _desktop_index.php_command_reports_subcommand_animals_per_room_ 3 310ms 103ms _desktop_index.php_command_reports_subcommand_animals_per_user_ 4 424ms 106ms _desktop_index.php_command_reports_subcommand_fates_zemm_produk 2 209ms 104ms _desktop_index.php_command_reports_subcommand_init_zemm_produkt 4 643ms 160ms _desktop_index.php_command_reports_subcommand_task_status_zemm_ 9 1s26ms 114ms _desktop_index.php_command_tasks_subcommand_edit_id_10141413_ze 1 85ms 85ms _desktop_index.php_command_tasks_subcommand_edit_id_10141515_ze 2 170ms 85ms _desktop_index.php_command_tasks_subcommand_edit_id_10141516_ze 2 170ms 85ms _desktop_index.php_command_tasks_subcommand_edit_id_10141517_ze 1 86ms 86ms _desktop_index.php_command_tasks_subcommand_edit_id_10141524_ze 1 84ms 84ms _desktop_index.php_command_tasks_subcommand_init_template_zemm_ 1 41ms 41ms _desktop_index.php_command_tasks_subcommand_open_zemm_produktiv 127 11s735ms 92ms _desktop_index.php_id_0_command_cages_subcommand_init_zemm_prod 1 46ms 46ms _desktop_index.php_m_action_animals_edit_3Alink_init_row_animal 2 105ms 52ms _desktop_index.php_name_Genotypisierungsproben_20genommen_instr 1 71ms 71ms _desktop_index.php_name_Tiertransport_20innerhalb_20W_C3_BCrzbu 2 131ms 65ms _desktop_index.php_name_Verpaarungen_20f_C3_BCr_20Versuchsvorha 12 751ms 62ms _desktop_index.php_name_Verpaarungen_20zur_20Zucht_instructions 3 198ms 66ms _desktop_index.php_search_id_10141257_search_status_5_no_subtas 1 53ms 53ms _desktop_index.php_search_status__25_no_subtasks_true_command_t 1 1s471ms 1s471ms _desktop_index.php_unweaned_only_true_val4_animals_litters_sear 1 124ms 124ms _desktop_index.php_view_animal_name_on_view_animal_id_on_animal 1 63ms 63ms _desktop_index.php_view_animal_name_on_view_animal_id_on_view_b 28 16s396ms 585ms _desktop_index.php_zemm_produktiv_8_localhost_5432 3,039 7m22s 145ms backend:zemm_produktiv_8@localhost 33 3s86ms 93ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 1s8ms 1s8ms notification:zemm_produktiv_7@localhost:5432 3 647ms 215ms pg_dump 1 11s631ms 11s631ms taskscron:zemm_produktiv_7@localhost:5432 1 53ms 53ms taskscron:zemm_produktiv_7@zemm.fbiscience.eu 24 602ms 25ms taskscron:zemm_produktiv_8@h2940066.stratoserver.net:5432 24 16s341ms 680ms zemm_produktiv_7:localhost:5432 6 678ms 113ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 19,555 buffers Checkpoint Peak
- 2026-03-10 14:15:01 Date
- 269.988 seconds Highest write time
- 0.027 seconds Sync time
Checkpoints Wal files
Key values
- 6 files Wal files usage Peak
- 2026-03-10 10:35:00 Date
Checkpoints distance
Key values
- 188.09 Mo Distance Peak
- 2026-03-10 01:34:50 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Mar 10 00 1,892 189.812s 0.074s 189.938s 01 20,070 442.211s 0.067s 442.336s 02 1,665 167.048s 0.064s 167.167s 03 1,792 179.763s 0.061s 179.88s 04 1,654 165.936s 0.062s 166.055s 05 1,778 178.344s 0.062s 178.457s 06 11,370 568.342s 0.154s 568.554s 07 3,780 378.913s 0.183s 379.146s 08 4,359 436.769s 0.225s 437.043s 09 3,979 398.564s 0.15s 398.767s 10 29,788 909.295s 0.17s 909.523s 11 15,755 525.557s 0.147s 525.76s 12 3,677 368.681s 0.176s 368.917s 13 3,446 345.457s 0.18s 345.69s 14 38,305 875.838s 0.198s 876.095s 15 3,498 350.648s 0.161s 350.864s 16 2,561 256.86s 0.094s 257.009s 17 3,153 315.923s 0.072s 316.047s 18 1,723 172.874s 0.067s 172.989s 19 1,876 188.207s 0.07s 188.323s 20 1,882 188.8s 0.067s 188.92s 21 8,137 671.479s 0.063s 671.589s 22 1,584 158.934s 0.062s 159.046s 23 1,886 189.185s 0.071s 189.311s Day Hour Added Removed Recycled Synced files Longest sync Average sync Mar 10 00 0 0 1 344 0.002s 0.012s 01 0 0 7 315 0.001s 0.012s 02 0 0 0 283 0.002s 0.012s 03 0 0 1 283 0.002s 0.012s 04 0 0 1 280 0.002s 0.012s 05 0 0 0 280 0.002s 0.012s 06 0 0 3 802 0.003s 0.012s 07 0 0 1 1,031 0.002s 0.012s 08 0 0 1 1,183 0.003s 0.012s 09 0 0 2 816 0.002s 0.012s 10 0 0 10 914 0.003s 0.012s 11 0 0 4 794 0.002s 0.012s 12 0 0 1 971 0.002s 0.012s 13 0 0 1 1,013 0.002s 0.012s 14 0 0 9 1,110 0.002s 0.012s 15 0 0 1 878 0.002s 0.012s 16 0 0 1 478 0.002s 0.012s 17 0 0 1 350 0.001s 0.012s 18 0 0 1 314 0.002s 0.012s 19 0 0 0 313 0.002s 0.012s 20 0 0 1 303 0.002s 0.012s 21 0 0 2 276 0.003s 0.011s 22 0 0 1 278 0.001s 0.012s 23 0 0 0 293 0.002s 0.012s Day Hour Count Avg time (sec) Mar 10 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Mar 10 00 970.17 kB 1,177.00 kB 01 8,907.17 kB 38,268.67 kB 02 904.58 kB 31,233.42 kB 03 924.58 kB 9,480.83 kB 04 899.75 kB 3,326.92 kB 05 923.92 kB 1,594.50 kB 06 3,661.08 kB 16,421.83 kB 07 1,506.00 kB 7,195.08 kB 08 1,666.00 kB 3,298.58 kB 09 1,642.25 kB 3,202.33 kB 10 14,216.42 kB 54,489.92 kB 11 5,916.67 kB 39,645.25 kB 12 1,515.33 kB 13,061.58 kB 13 1,415.83 kB 4,735.42 kB 14 11,715.25 kB 43,619.58 kB 15 1,406.17 kB 15,939.67 kB 16 1,118.25 kB 5,364.50 kB 17 1,305.83 kB 2,491.67 kB 18 921.67 kB 2,780.33 kB 19 945.00 kB 1,457.75 kB 20 953.67 kB 1,169.00 kB 21 2,958.91 kB 6,880.91 kB 22 886.83 kB 4,495.83 kB 23 951.50 kB 1,917.50 kB -
Temporary Files
Size of temporary files
Key values
- 66.12 MiB Temp Files size Peak
- 2026-03-10 21:21:07 Date
Number of temporary files
Key values
- 1 per second Temp Files Peak
- 2026-03-10 21:21:07 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Mar 10 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 5 330.62 MiB 66.12 MiB 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 8.74 sec Highest CPU-cost vacuum
Table observability.db_top_queries
Database zemm_monitoring - 2026-03-10 14:05:35 Date
- 0 sec Highest CPU-cost analyze
Table
Database zemm_monitoring - Date
Average Autovacuum Duration
Key values
- 8.74 sec Highest CPU-cost vacuum
Table observability.db_top_queries
Database zemm_monitoring - 2026-03-10 14:05:35 Date
Analyzes per table
Key values
- pg_catalog.pg_type (47) Main table analyzed (database zemm_produktiv_8)
- 160 analyzes Total
Table Number of analyzes zemm_produktiv_8.pg_catalog.pg_type 47 zemm_produktiv_8.pg_catalog.pg_attribute 35 zemm_produktiv_8.pg_catalog.pg_class 24 zemm_produktiv_8.pg_catalog.pg_depend 23 zemm_produktiv_8.public.breedingsdams 5 zemm_produktiv_8.public.breedingssires 5 zemm_produktiv_8.public.tmptasks 2 zemm_monitoring.observability.metrics_timeseries 2 zemm_produktiv_8.pg_catalog.pg_shdepend 2 fbi_ci_db.pg_catalog.pg_shdepend 1 zemm_monitoring.observability.db_top_queries 1 zemm_produktiv_8.public.cages_search_mview 1 fbi_unire.pg_catalog.pg_shdepend 1 zemm_test_2.pg_catalog.pg_shdepend 1 zemm_monitoring.observability.phpfpm_counters 1 zemm_produktiv_8.public.login_tracker 1 zemm_produktiv_8.public.tasks 1 zemm_monitoring.pg_catalog.pg_shdepend 1 zemm_produktiv_8.public.users 1 zemm_produktiv_8.public.monitoring_session_activity 1 template0.pg_catalog.pg_shdepend 1 invdb.pg_catalog.pg_shdepend 1 zemm_monitoring.observability.nginx_counters 1 fbi_unibi.pg_catalog.pg_shdepend 1 Total 160 Vacuums per table
Key values
- pg_catalog.pg_type (16) Main table vacuumed on database zemm_produktiv_8
- 73 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples zemm_produktiv_8.pg_catalog.pg_type 16 16 0 0 0 0 0 855 184 200,370 0 0 zemm_produktiv_8.pg_catalog.pg_attribute 12 12 0 0 0 0 0 1,568 527 349,571 0 0 zemm_monitoring.pg_toast.pg_toast_67431 11 0 0 0 0 0 0 4,451 1,506 3,397,413 1,458 8,748 zemm_produktiv_8.pg_catalog.pg_class 8 8 0 0 0 0 0 781 249 274,857 0 0 zemm_produktiv_8.pg_catalog.pg_depend 6 6 0 0 0 0 0 749 215 257,028 0 0 zemm_produktiv_8.public.breedingsdams 5 0 0 0 0 0 0 985 20 61,415 0 0 zemm_produktiv_8.public.breedingssires 5 0 0 0 0 0 0 735 20 46,665 0 0 zemm_produktiv_8.pg_toast.pg_toast_2619 3 3 0 0 0 0 0 584 175 857,952 34 114 zemm_produktiv_8.pg_catalog.pg_shdepend 2 2 0 0 0 0 0 161 56 97,473 0 0 zemm_produktiv_8.public.cages_search_mview 1 1 0 0 0 0 0 421 247 913,745 7 394 zemm_monitoring.observability.db_top_queries 1 0 0 0 0 0 0 61,635 34,267 123,361,713 13,687 142,764 zemm_produktiv_8.pg_catalog.pg_statistic 1 1 0 0 0 0 0 175 68 196,161 37 171 zemm_produktiv_8.public.tasks 1 1 0 0 0 0 0 39,259 53 2,913,414 1 1 fbi_unibi.pg_catalog.pg_shdepend 1 1 0 0 0 0 0 93 31 57,380 0 0 Total 73 51 0 0 0 0 0 112,452 37,618 132,985,157 15,224 152,192 Vacuum throughput per table
Key values
- observability.db_top_queries (8.74) Max CPU elapsed for vacuum on database zemm_monitoring
- observability.db_top_queries (3.068 ms) Max I/O read time for vacuum on database zemm_monitoring
- public.breedingssires (0.121 ms) Max I/O write time for vacuum on database zemm_monitoring
I/O timing (ms) CPU (s) Table read write elapsed zemm_produktiv_8.pg_catalog.pg_type 0 0 0 zemm_produktiv_8.pg_catalog.pg_attribute 0 0 0.12 zemm_monitoring.pg_toast.pg_toast_67431 0 0 0.33 zemm_produktiv_8.pg_catalog.pg_class 0 0 0 zemm_produktiv_8.pg_catalog.pg_depend 0 0 0.05 zemm_produktiv_8.public.breedingsdams 0 0.073 0 zemm_produktiv_8.public.breedingssires 0 0.121 0 zemm_produktiv_8.pg_toast.pg_toast_2619 0 0 0.03 zemm_produktiv_8.pg_catalog.pg_shdepend 0 0 0 zemm_produktiv_8.public.cages_search_mview 0.093 0 0.06 zemm_monitoring.observability.db_top_queries 3.068 0.038 8.74 zemm_produktiv_8.pg_catalog.pg_statistic 0 0 0.01 zemm_produktiv_8.public.tasks 0 0 0.55 fbi_unibi.pg_catalog.pg_shdepend 0.466 0 0.01 Total 3.627 0.232 9.9 Tuples removed per table
Key values
- public.tasks (53176) Main table with removed tuples on database zemm_produktiv_8
- 76664 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain zemm_produktiv_8.public.tasks 1 1 53,176 56,116 0 0 16,476 zemm_produktiv_8.pg_catalog.pg_attribute 12 12 12,027 68,592 0 0 2,208 zemm_produktiv_8.pg_catalog.pg_depend 6 6 5,254 25,026 0 0 330 zemm_produktiv_8.pg_catalog.pg_type 16 16 3,208 13,296 0 0 496 zemm_produktiv_8.pg_catalog.pg_class 8 8 1,244 7,152 0 0 336 zemm_produktiv_8.pg_catalog.pg_shdepend 2 2 684 7,682 0 0 76 fbi_unibi.pg_catalog.pg_shdepend 1 1 449 3,841 0 0 38 zemm_produktiv_8.pg_toast.pg_toast_2619 3 3 337 876 0 0 318 zemm_produktiv_8.pg_catalog.pg_statistic 1 1 213 1,250 0 0 144 zemm_produktiv_8.public.cages_search_mview 1 1 72 12,783 0 0 196 zemm_produktiv_8.public.breedingsdams 5 0 0 150,915 0 0 965 zemm_monitoring.observability.db_top_queries 1 0 0 2,413,105 0 0 244,267 zemm_monitoring.pg_toast.pg_toast_67431 11 0 0 861,830 0 0 144,225 zemm_produktiv_8.public.breedingssires 5 0 0 111,660 0 0 715 Total 73 51 76,664 3,734,124 0 0 410,790 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Pages removed per tables
NO DATASET
Table Number of vacuums Index scans Tuples removed Pages removed zemm_produktiv_8.public.cages_search_mview 1 1 72 0 zemm_produktiv_8.pg_catalog.pg_class 8 8 1244 0 zemm_produktiv_8.pg_toast.pg_toast_2619 3 3 337 0 zemm_produktiv_8.public.breedingsdams 5 0 0 0 zemm_monitoring.observability.db_top_queries 1 0 0 0 zemm_produktiv_8.pg_catalog.pg_statistic 1 1 213 0 zemm_produktiv_8.public.tasks 1 1 53176 0 zemm_produktiv_8.pg_catalog.pg_type 16 16 3208 0 zemm_produktiv_8.pg_catalog.pg_depend 6 6 5254 0 zemm_produktiv_8.pg_catalog.pg_shdepend 2 2 684 0 fbi_unibi.pg_catalog.pg_shdepend 1 1 449 0 zemm_produktiv_8.pg_catalog.pg_attribute 12 12 12027 0 zemm_monitoring.pg_toast.pg_toast_67431 11 0 0 0 zemm_produktiv_8.public.breedingssires 5 0 0 0 Total 73 51 76,664 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Mar 10 00 0 0 01 3 1 02 0 0 03 1 0 04 0 0 05 1 0 06 7 17 07 7 21 08 8 19 09 3 7 10 11 20 11 6 10 12 8 24 13 5 15 14 6 12 15 3 8 16 1 1 17 0 2 18 0 0 19 1 0 20 0 2 21 1 1 22 0 0 23 1 0 - 8.74 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 34 Total read queries
- 17,291 Total write queries
Queries by database
Key values
- zemm_monitoring Main database
- 17,280 Requests
- 3h39m46s (zemm_monitoring)
- Main time consuming database
Queries by user
Key values
- labanimal Main user
- 70,231 Requests
User Request type Count Duration labanimal Total 70,231 1d9h29m47s cte 49 1m1s ddl 69,960 1d9h20m16s others 4 3s68ms select 213 8m20s update 3 3s672ms postgres Total 3,541 1h2m4s copy from 19 54s373ms copy to 80 2m49s cte 5 10s291ms ddl 2,728 45m51s others 679 11m32s update 1 599ms Duration by user
Key values
- 1d9h29m47s (labanimal) Main time consuming user
User Request type Count Duration labanimal Total 70,231 1d9h29m47s cte 49 1m1s ddl 69,960 1d9h20m16s others 4 3s68ms select 213 8m20s update 3 3s672ms postgres Total 3,541 1h2m4s copy from 19 54s373ms copy to 80 2m49s cte 5 10s291ms ddl 2,728 45m51s others 679 11m32s update 1 599ms Queries by host
Key values
- unknown Main host
- 70,226 Requests
- 1d9h26m44s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 17,280 Requests
- 3h39m46s (unknown)
- Main time consuming application
Application Request type Count Duration _desktop_index.php_search_status__25_no_subtasks_true_command_t Total 1 1s409ms select 1 1s409ms _desktop_index.php_zemm_produktiv_8_localhost_5432 Total 37 30s746ms cte 4 6s954ms select 33 23s792ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 Total 1 986ms update 1 986ms pg_dump Total 5 6s334ms copy to 5 6s334ms unknown Total 17,280 3h39m46s ddl 17,280 3h39m46s zemm_produktiv_7:localhost:5432 Total 1 593ms cte 1 593ms Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-03-10 20:19:01 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 34 500-1000ms duration
Slowest individual queries
Rank Duration Query 1 2s138ms WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 145) THEN TRUE WHEN user_is_tgm (dam.editor, 145) THEN TRUE WHEN user_is_tgm (dam.tourist, 145) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 145) THEN TRUE WHEN user_is_tgm (sire.editor, 145) THEN TRUE WHEN user_is_tgm (sire.tourist, 145) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);[ Date: 2026-03-10 11:04:19 - Database: zemm_produktiv_8 - User: labanimal - Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 ]
2 2s138ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
3 2s138ms CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
4 2s138ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
5 2s138ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
6 2s138ms CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
7 2s138ms CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
8 2s138ms CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
9 2s138ms CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
10 2s138ms CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
11 2s138ms CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
12 2s138ms CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
13 2s138ms CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-10 11:05:01 - Database: zemm_monitoring - User: labanimal ]
14 1s956ms COPY public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) TO stdout;[ Date: 2026-03-10 23:55:07 - Database: zemm_produktiv_8 - User: postgres - Remote: [local] - Application: pg_dump ]
15 1s649ms WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 456) THEN TRUE WHEN user_is_tgm (dam.editor, 456) THEN TRUE WHEN user_is_tgm (dam.tourist, 456) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 456) THEN TRUE WHEN user_is_tgm (sire.editor, 456) THEN TRUE WHEN user_is_tgm (sire.tourist, 456) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('51%') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."breeding_date" >= '2025-09-01' AND breedings."breeding_date" <= '2026-03-10' GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);[ Date: 2026-03-10 14:58:42 - Database: zemm_produktiv_8 - User: labanimal - Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 ]
16 1s649ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-03-10 14:59:01 - Database: zemm_monitoring - User: labanimal ]
17 1s649ms CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );[ Date: 2026-03-10 14:59:01 - Database: zemm_monitoring - User: labanimal ]
18 1s649ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);[ Date: 2026-03-10 14:59:01 - Database: zemm_monitoring - User: labanimal ]
19 1s649ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);[ Date: 2026-03-10 14:59:01 - Database: zemm_monitoring - User: labanimal ]
20 1s649ms CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-10 14:59:01 - Database: zemm_monitoring - User: labanimal ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 18m18s 1,440 535ms 2s138ms 763ms create index if not exists idx_db_top_queries_tenant on observability.db_top_queries (tenant_key, collected_at desc);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
2 18m18s 1,440 535ms 2s138ms 763ms create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
3 18m18s 1,440 535ms 2s138ms 763ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
4 18m18s 1,440 535ms 2s138ms 763ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
5 18m18s 1,440 535ms 2s138ms 763ms create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
6 18m18s 1,440 535ms 2s138ms 763ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
7 18m18s 1,440 535ms 2s138ms 763ms create table if not exists observability.db_top_queries ( id bigserial primary key, tenant_key text not null, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz not null default now() );Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
8 18m18s 1,440 535ms 2s138ms 763ms create table if not exists observability.nginx_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
9 18m18s 1,440 535ms 2s138ms 763ms create table if not exists observability.phpfpm_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
10 18m18s 1,440 535ms 2s138ms 763ms create schema if not exists observability;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
11 18m18s 1,440 535ms 2s138ms 763ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
12 18m18s 1,440 535ms 2s138ms 763ms create table if not exists observability.uptime_checks ( id bigserial primary key, endpoint text not null, status text not null, latency_ms double precision, checked_at timestamptz not null default now() );Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
13 4s655ms 7 655ms 674ms 665ms select count(distinct animal_id) AS "count" from ( select animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join animals a on a."animalID" = animals_search_mview.animal_id left join breedings b on b.id = animals_search_mview.last_mating) data where fate = ? and alive = ? and deleted = ? and (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Mar 10 09 1 663ms 663ms 10 1 655ms 655ms 11 2 1s332ms 666ms 15 2 1s341ms 670ms 16 1 662ms 662ms [ User: labanimal - Total duration: 4s655ms - Times executed: 7 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 4s655ms - Times executed: 7 ]
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 490) AS is_owner, user_is_tgm (animals_search_mview.editor, 490) AS is_editor, user_is_tgm (animals_search_mview.tourist, 490) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 11:06:56 Duration: 674ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 10100176) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100176) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100176) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 15:37:22 Duration: 672ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 10100176) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100176) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100176) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 15:37:19 Duration: 669ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
14 4s343ms 7 614ms 632ms 620ms select distinct * from ( select animals_search_mview.*, b.unbreeding_date, fates.loc as fate_name, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, string_agg(l."application_id" || ? || l."title" || ? || date(lh."timestamp")::varchar, ?) as licensehistory, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview inner join fates on fates.id = animals_search_mview.fate left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join licenses l on l.id = lh.licid left join breedings b on b.id = animals_search_mview.last_mating group by animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data where data.fate = ? and data.alive = ? and data.deleted = ? and (is_owner or is_editor or is_tourist) and (data.straindeleted = ? or data.straindeleted is null) order by data.cage_name, data.animal_id, data.name;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Mar 10 09 1 616ms 616ms 10 1 614ms 614ms 11 2 1s239ms 619ms 15 2 1s250ms 625ms 16 1 623ms 623ms [ User: labanimal - Total duration: 4s343ms - Times executed: 7 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 4s343ms - Times executed: 7 ]
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 10100176) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100176) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100176) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 15:37:20 Duration: 632ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 490) AS is_owner, user_is_tgm (animals_search_mview.editor, 490) AS is_editor, user_is_tgm (animals_search_mview.tourist, 490) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 11:06:56 Duration: 625ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 10100007) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100007) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100007) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 16:29:11 Duration: 623ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
15 4s255ms 3 1s409ms 1s424ms 1s418ms select tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, string_agg(distinct issuer_user."fullName", ?) as issued_by, tk.time_issued, string_agg(distinct agent_user."fullName", ?) as completed_by, tk.time_completed from tasks tk inner join "targetgroupMembers" issuer on issuer.targetgroup = tk.owner inner join ( select "targetgroupMembers".targetgroup, users.* from "targetgroupMembers" inner join users on users.id = "targetgroupMembers"."user") issuer_user on issuer_user.targetgroup = tk.owner left join "targetgroupMembers" agent on agent.targetgroup = tk.agent left join ( select "targetgroupMembers".targetgroup, users.* from "targetgroupMembers" inner join users on users.id = "targetgroupMembers"."user") agent_user on agent_user.targetgroup = tk.agent where (user_is_tgm (tk.owner, ?) or user_is_tgm (tk.agent, ?)) and tk.task_status like ? group by tk.id;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Mar 10 11 2 2s834ms 1s417ms 15 1 1s421ms 1s421ms [ User: labanimal - Total duration: 4s255ms - Times executed: 3 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s846ms - Times executed: 2 ]
[ Application: _desktop_index.php_search_status__25_no_subtasks_true_command_t - Total duration: 1s409ms - Times executed: 1 ]
-
SELECT tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, STRING_AGG(DISTINCT issuer_user."fullName", ';') AS issued_by, tk.time_issued, STRING_AGG(DISTINCT agent_user."fullName", ';') AS completed_by, tk.time_completed FROM tasks tk INNER JOIN "targetgroupMembers" issuer ON issuer.targetgroup = tk.owner INNER JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") issuer_user ON issuer_user.targetgroup = tk.owner LEFT JOIN "targetgroupMembers" agent ON agent.targetgroup = tk.agent LEFT JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") agent_user ON agent_user.targetgroup = tk.agent WHERE (user_is_tgm (tk.owner, 47) OR user_is_tgm (tk.agent, 47)) AND tk.task_status LIKE '%' GROUP BY tk.id;
Date: 2026-03-10 11:57:03 Duration: 1s424ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, STRING_AGG(DISTINCT issuer_user."fullName", ';') AS issued_by, tk.time_issued, STRING_AGG(DISTINCT agent_user."fullName", ';') AS completed_by, tk.time_completed FROM tasks tk INNER JOIN "targetgroupMembers" issuer ON issuer.targetgroup = tk.owner INNER JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") issuer_user ON issuer_user.targetgroup = tk.owner LEFT JOIN "targetgroupMembers" agent ON agent.targetgroup = tk.agent LEFT JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") agent_user ON agent_user.targetgroup = tk.agent WHERE (user_is_tgm (tk.owner, 10100000) OR user_is_tgm (tk.agent, 10100000)) AND tk.task_status LIKE '%' GROUP BY tk.id;
Date: 2026-03-10 15:49:15 Duration: 1s421ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, STRING_AGG(DISTINCT issuer_user."fullName", ';') AS issued_by, tk.time_issued, STRING_AGG(DISTINCT agent_user."fullName", ';') AS completed_by, tk.time_completed FROM tasks tk INNER JOIN "targetgroupMembers" issuer ON issuer.targetgroup = tk.owner INNER JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") issuer_user ON issuer_user.targetgroup = tk.owner LEFT JOIN "targetgroupMembers" agent ON agent.targetgroup = tk.agent LEFT JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") agent_user ON agent_user.targetgroup = tk.agent WHERE (user_is_tgm (tk.owner, 47) OR user_is_tgm (tk.agent, 47)) AND tk.task_status LIKE '%' GROUP BY tk.id;
Date: 2026-03-10 11:59:03 Duration: 1s409ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_search_status__25_no_subtasks_true_command_t Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
16 3s425ms 4 767ms 961ms 856ms select p_update_breedings (?, null, ?, ?::date, null, ?::text, ?::text, null) as id;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Mar 10 10 3 2s501ms 833ms 11 1 923ms 923ms [ User: labanimal - Total duration: 3s425ms - Times executed: 4 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 3s425ms - Times executed: 4 ]
-
SELECT p_update_breedings (457, NULL, 16072, '2026-03-10'::date, NULL, '10293596'::text, '10296174'::text, NULL) AS id;
Date: 2026-03-10 10:27:02 Duration: 961ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT p_update_breedings (457, NULL, 7157, '2026-03-10'::date, NULL, '10281703'::text, '10295131'::text, NULL) AS id;
Date: 2026-03-10 11:06:00 Duration: 923ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT p_update_breedings (457, NULL, 16021, '2026-03-10'::date, NULL, '10293602'::text, '10294671'::text, NULL) AS id;
Date: 2026-03-10 10:27:59 Duration: 773ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
17 3s166ms 2 1s562ms 1s604ms 1s583ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and cagess."cageName" like (?) and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Mar 10 10 1 1s604ms 1s604ms 15 1 1s562ms 1s562ms [ User: labanimal - Total duration: 3s166ms - Times executed: 2 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 3s166ms - Times executed: 2 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 457) THEN TRUE WHEN user_is_tgm (dam.editor, 457) THEN TRUE WHEN user_is_tgm (dam.tourist, 457) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 457) THEN TRUE WHEN user_is_tgm (sire.editor, 457) THEN TRUE WHEN user_is_tgm (sire.tourist, 457) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('49-128') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-10 10:06:28 Duration: 1s604ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 183) THEN TRUE WHEN user_is_tgm (dam.editor, 183) THEN TRUE WHEN user_is_tgm (dam.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 183) THEN TRUE WHEN user_is_tgm (sire.editor, 183) THEN TRUE WHEN user_is_tgm (sire.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('54-060') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-10 15:09:18 Duration: 1s562ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
18 2s138ms 1 2s138ms 2s138ms 2s138ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Mar 10 11 1 2s138ms 2s138ms [ User: labanimal - Total duration: 2s138ms - Times executed: 1 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s138ms - Times executed: 1 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 145) THEN TRUE WHEN user_is_tgm (dam.editor, 145) THEN TRUE WHEN user_is_tgm (dam.tourist, 145) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 145) THEN TRUE WHEN user_is_tgm (sire.editor, 145) THEN TRUE WHEN user_is_tgm (sire.tourist, 145) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-10 11:04:19 Duration: 2s138ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
19 2s118ms 3 704ms 709ms 706ms select count(distinct animal_id) AS "count" from ( select animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join animals a on a."animalID" = animals_search_mview.animal_id left join breedings b on b.id = animals_search_mview.last_mating) data where species = ? and fate = ? and alive = ? and deleted = ? and (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Mar 10 08 3 2s118ms 706ms [ User: labanimal - Total duration: 2s118ms - Times executed: 3 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s118ms - Times executed: 3 ]
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE species = 1 AND fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 08:56:23 Duration: 709ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE species = 1 AND fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 08:55:12 Duration: 704ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE species = 1 AND fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 08:55:07 Duration: 704ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
20 1s984ms 3 659ms 664ms 661ms select distinct * from ( select animals_search_mview.*, b.unbreeding_date, fates.loc as fate_name, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, string_agg(l."application_id" || ? || l."title" || ? || date(lh."timestamp")::varchar, ?) as licensehistory, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview inner join fates on fates.id = animals_search_mview.fate left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join licenses l on l.id = lh.licid left join breedings b on b.id = animals_search_mview.last_mating group by animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data where data.species = ? and data.fate = ? and data.alive = ? and data.deleted = ? and (is_owner or is_editor or is_tourist) and (data.straindeleted = ? or data.straindeleted is null) order by data.cage_name, data.animal_id, data.name;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Mar 10 08 3 1s984ms 661ms [ User: labanimal - Total duration: 1s984ms - Times executed: 3 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 1s984ms - Times executed: 3 ]
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.species = 1 AND data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 08:56:24 Duration: 664ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.species = 1 AND data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 08:55:13 Duration: 660ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.species = 1 AND data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 08:55:08 Duration: 659ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1,440 18m18s 535ms 2s138ms 763ms create index if not exists idx_db_top_queries_tenant on observability.db_top_queries (tenant_key, collected_at desc);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
2 1,440 18m18s 535ms 2s138ms 763ms create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
3 1,440 18m18s 535ms 2s138ms 763ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
4 1,440 18m18s 535ms 2s138ms 763ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
5 1,440 18m18s 535ms 2s138ms 763ms create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
6 1,440 18m18s 535ms 2s138ms 763ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
7 1,440 18m18s 535ms 2s138ms 763ms create table if not exists observability.db_top_queries ( id bigserial primary key, tenant_key text not null, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz not null default now() );Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
8 1,440 18m18s 535ms 2s138ms 763ms create table if not exists observability.nginx_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
9 1,440 18m18s 535ms 2s138ms 763ms create table if not exists observability.phpfpm_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
10 1,440 18m18s 535ms 2s138ms 763ms create schema if not exists observability;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
11 1,440 18m18s 535ms 2s138ms 763ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
12 1,440 18m18s 535ms 2s138ms 763ms create table if not exists observability.uptime_checks ( id bigserial primary key, endpoint text not null, status text not null, latency_ms double precision, checked_at timestamptz not null default now() );Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
13 7 4s655ms 655ms 674ms 665ms select count(distinct animal_id) AS "count" from ( select animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join animals a on a."animalID" = animals_search_mview.animal_id left join breedings b on b.id = animals_search_mview.last_mating) data where fate = ? and alive = ? and deleted = ? and (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Mar 10 09 1 663ms 663ms 10 1 655ms 655ms 11 2 1s332ms 666ms 15 2 1s341ms 670ms 16 1 662ms 662ms [ User: labanimal - Total duration: 4s655ms - Times executed: 7 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 4s655ms - Times executed: 7 ]
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 490) AS is_owner, user_is_tgm (animals_search_mview.editor, 490) AS is_editor, user_is_tgm (animals_search_mview.tourist, 490) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 11:06:56 Duration: 674ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 10100176) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100176) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100176) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 15:37:22 Duration: 672ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 10100176) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100176) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100176) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 15:37:19 Duration: 669ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
14 7 4s343ms 614ms 632ms 620ms select distinct * from ( select animals_search_mview.*, b.unbreeding_date, fates.loc as fate_name, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, string_agg(l."application_id" || ? || l."title" || ? || date(lh."timestamp")::varchar, ?) as licensehistory, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview inner join fates on fates.id = animals_search_mview.fate left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join licenses l on l.id = lh.licid left join breedings b on b.id = animals_search_mview.last_mating group by animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data where data.fate = ? and data.alive = ? and data.deleted = ? and (is_owner or is_editor or is_tourist) and (data.straindeleted = ? or data.straindeleted is null) order by data.cage_name, data.animal_id, data.name;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Mar 10 09 1 616ms 616ms 10 1 614ms 614ms 11 2 1s239ms 619ms 15 2 1s250ms 625ms 16 1 623ms 623ms [ User: labanimal - Total duration: 4s343ms - Times executed: 7 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 4s343ms - Times executed: 7 ]
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 10100176) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100176) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100176) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 15:37:20 Duration: 632ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 490) AS is_owner, user_is_tgm (animals_search_mview.editor, 490) AS is_editor, user_is_tgm (animals_search_mview.tourist, 490) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 11:06:56 Duration: 625ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 10100007) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100007) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100007) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 16:29:11 Duration: 623ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
15 4 3s425ms 767ms 961ms 856ms select p_update_breedings (?, null, ?, ?::date, null, ?::text, ?::text, null) as id;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Mar 10 10 3 2s501ms 833ms 11 1 923ms 923ms [ User: labanimal - Total duration: 3s425ms - Times executed: 4 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 3s425ms - Times executed: 4 ]
-
SELECT p_update_breedings (457, NULL, 16072, '2026-03-10'::date, NULL, '10293596'::text, '10296174'::text, NULL) AS id;
Date: 2026-03-10 10:27:02 Duration: 961ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT p_update_breedings (457, NULL, 7157, '2026-03-10'::date, NULL, '10281703'::text, '10295131'::text, NULL) AS id;
Date: 2026-03-10 11:06:00 Duration: 923ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT p_update_breedings (457, NULL, 16021, '2026-03-10'::date, NULL, '10293602'::text, '10294671'::text, NULL) AS id;
Date: 2026-03-10 10:27:59 Duration: 773ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
16 3 4s255ms 1s409ms 1s424ms 1s418ms select tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, string_agg(distinct issuer_user."fullName", ?) as issued_by, tk.time_issued, string_agg(distinct agent_user."fullName", ?) as completed_by, tk.time_completed from tasks tk inner join "targetgroupMembers" issuer on issuer.targetgroup = tk.owner inner join ( select "targetgroupMembers".targetgroup, users.* from "targetgroupMembers" inner join users on users.id = "targetgroupMembers"."user") issuer_user on issuer_user.targetgroup = tk.owner left join "targetgroupMembers" agent on agent.targetgroup = tk.agent left join ( select "targetgroupMembers".targetgroup, users.* from "targetgroupMembers" inner join users on users.id = "targetgroupMembers"."user") agent_user on agent_user.targetgroup = tk.agent where (user_is_tgm (tk.owner, ?) or user_is_tgm (tk.agent, ?)) and tk.task_status like ? group by tk.id;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Mar 10 11 2 2s834ms 1s417ms 15 1 1s421ms 1s421ms [ User: labanimal - Total duration: 4s255ms - Times executed: 3 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s846ms - Times executed: 2 ]
[ Application: _desktop_index.php_search_status__25_no_subtasks_true_command_t - Total duration: 1s409ms - Times executed: 1 ]
-
SELECT tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, STRING_AGG(DISTINCT issuer_user."fullName", ';') AS issued_by, tk.time_issued, STRING_AGG(DISTINCT agent_user."fullName", ';') AS completed_by, tk.time_completed FROM tasks tk INNER JOIN "targetgroupMembers" issuer ON issuer.targetgroup = tk.owner INNER JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") issuer_user ON issuer_user.targetgroup = tk.owner LEFT JOIN "targetgroupMembers" agent ON agent.targetgroup = tk.agent LEFT JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") agent_user ON agent_user.targetgroup = tk.agent WHERE (user_is_tgm (tk.owner, 47) OR user_is_tgm (tk.agent, 47)) AND tk.task_status LIKE '%' GROUP BY tk.id;
Date: 2026-03-10 11:57:03 Duration: 1s424ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, STRING_AGG(DISTINCT issuer_user."fullName", ';') AS issued_by, tk.time_issued, STRING_AGG(DISTINCT agent_user."fullName", ';') AS completed_by, tk.time_completed FROM tasks tk INNER JOIN "targetgroupMembers" issuer ON issuer.targetgroup = tk.owner INNER JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") issuer_user ON issuer_user.targetgroup = tk.owner LEFT JOIN "targetgroupMembers" agent ON agent.targetgroup = tk.agent LEFT JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") agent_user ON agent_user.targetgroup = tk.agent WHERE (user_is_tgm (tk.owner, 10100000) OR user_is_tgm (tk.agent, 10100000)) AND tk.task_status LIKE '%' GROUP BY tk.id;
Date: 2026-03-10 15:49:15 Duration: 1s421ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, STRING_AGG(DISTINCT issuer_user."fullName", ';') AS issued_by, tk.time_issued, STRING_AGG(DISTINCT agent_user."fullName", ';') AS completed_by, tk.time_completed FROM tasks tk INNER JOIN "targetgroupMembers" issuer ON issuer.targetgroup = tk.owner INNER JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") issuer_user ON issuer_user.targetgroup = tk.owner LEFT JOIN "targetgroupMembers" agent ON agent.targetgroup = tk.agent LEFT JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") agent_user ON agent_user.targetgroup = tk.agent WHERE (user_is_tgm (tk.owner, 47) OR user_is_tgm (tk.agent, 47)) AND tk.task_status LIKE '%' GROUP BY tk.id;
Date: 2026-03-10 11:59:03 Duration: 1s409ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_search_status__25_no_subtasks_true_command_t Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
17 3 2s118ms 704ms 709ms 706ms select count(distinct animal_id) AS "count" from ( select animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join animals a on a."animalID" = animals_search_mview.animal_id left join breedings b on b.id = animals_search_mview.last_mating) data where species = ? and fate = ? and alive = ? and deleted = ? and (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Mar 10 08 3 2s118ms 706ms [ User: labanimal - Total duration: 2s118ms - Times executed: 3 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s118ms - Times executed: 3 ]
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE species = 1 AND fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 08:56:23 Duration: 709ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE species = 1 AND fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 08:55:12 Duration: 704ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE species = 1 AND fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 08:55:07 Duration: 704ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
18 3 1s984ms 659ms 664ms 661ms select distinct * from ( select animals_search_mview.*, b.unbreeding_date, fates.loc as fate_name, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, string_agg(l."application_id" || ? || l."title" || ? || date(lh."timestamp")::varchar, ?) as licensehistory, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview inner join fates on fates.id = animals_search_mview.fate left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join licenses l on l.id = lh.licid left join breedings b on b.id = animals_search_mview.last_mating group by animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data where data.species = ? and data.fate = ? and data.alive = ? and data.deleted = ? and (is_owner or is_editor or is_tourist) and (data.straindeleted = ? or data.straindeleted is null) order by data.cage_name, data.animal_id, data.name;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Mar 10 08 3 1s984ms 661ms [ User: labanimal - Total duration: 1s984ms - Times executed: 3 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 1s984ms - Times executed: 3 ]
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.species = 1 AND data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 08:56:24 Duration: 664ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.species = 1 AND data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 08:55:13 Duration: 660ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.species = 1 AND data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 08:55:08 Duration: 659ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
19 3 1s600ms 530ms 535ms 533ms select breedings.id, cages.id as cage_db_id, cages."cageName" as cage_name, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, breedings.sires, breedings.dams from breedings inner join ( select id, name, "animalID", "homeCage", tourist, editor, owner from animals) as dam on position((?| | dam.id || ?) in (?| | breedings.dams || ?)) > ? inner join ( select id, name, "animalID" from animals) as sire on position((?| | sire.id || ?) in (?| | breedings.sires || ?)) > ? inner join cages on cages.id = breedings.cage where breedings.id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Mar 10 10 2 1s64ms 532ms 15 1 535ms 535ms [ User: labanimal - Total duration: 1s600ms - Times executed: 3 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 1s600ms - Times executed: 3 ]
-
SELECT breedings.id, cages.id as cage_db_id, cages."cageName" as cage_name, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, breedings.sires, breedings.dams FROM breedings INNER JOIN ( select id, name, "animalID", "homeCage", tourist, editor, owner from animals) AS dam ON POSITION((';' || dam.id || ';') IN (';' || breedings.dams || ';')) > 0 INNER JOIN ( select id, name, "animalID" from animals) AS sire ON POSITION((';' || sire.id || ';') IN (';' || breedings.sires || ';')) > 0 INNER JOIN cages ON cages.id = breedings.cage WHERE breedings.id = 10110994;
Date: 2026-03-10 15:00:15 Duration: 535ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT breedings.id, cages.id as cage_db_id, cages."cageName" as cage_name, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, breedings.sires, breedings.dams FROM breedings INNER JOIN ( select id, name, "animalID", "homeCage", tourist, editor, owner from animals) AS dam ON POSITION((';' || dam.id || ';') IN (';' || breedings.dams || ';')) > 0 INNER JOIN ( select id, name, "animalID" from animals) AS sire ON POSITION((';' || sire.id || ';') IN (';' || breedings.sires || ';')) > 0 INNER JOIN cages ON cages.id = breedings.cage WHERE breedings.id = 10110936;
Date: 2026-03-10 10:06:32 Duration: 533ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT breedings.id, cages.id as cage_db_id, cages."cageName" as cage_name, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, breedings.sires, breedings.dams FROM breedings INNER JOIN ( select id, name, "animalID", "homeCage", tourist, editor, owner from animals) AS dam ON POSITION((';' || dam.id || ';') IN (';' || breedings.dams || ';')) > 0 INNER JOIN ( select id, name, "animalID" from animals) AS sire ON POSITION((';' || sire.id || ';') IN (';' || breedings.sires || ';')) > 0 INNER JOIN cages ON cages.id = breedings.cage WHERE breedings.id = 10110936;
Date: 2026-03-10 10:06:42 Duration: 530ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
20 2 3s166ms 1s562ms 1s604ms 1s583ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and cagess."cageName" like (?) and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Mar 10 10 1 1s604ms 1s604ms 15 1 1s562ms 1s562ms [ User: labanimal - Total duration: 3s166ms - Times executed: 2 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 3s166ms - Times executed: 2 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 457) THEN TRUE WHEN user_is_tgm (dam.editor, 457) THEN TRUE WHEN user_is_tgm (dam.tourist, 457) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 457) THEN TRUE WHEN user_is_tgm (sire.editor, 457) THEN TRUE WHEN user_is_tgm (sire.tourist, 457) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('49-128') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-10 10:06:28 Duration: 1s604ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 183) THEN TRUE WHEN user_is_tgm (dam.editor, 183) THEN TRUE WHEN user_is_tgm (dam.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 183) THEN TRUE WHEN user_is_tgm (sire.editor, 183) THEN TRUE WHEN user_is_tgm (sire.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('54-060') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-10 15:09:18 Duration: 1s562ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2s138ms 2s138ms 2s138ms 1 2s138ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Mar 10 11 1 2s138ms 2s138ms [ User: labanimal - Total duration: 2s138ms - Times executed: 1 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s138ms - Times executed: 1 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 145) THEN TRUE WHEN user_is_tgm (dam.editor, 145) THEN TRUE WHEN user_is_tgm (dam.tourist, 145) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 145) THEN TRUE WHEN user_is_tgm (sire.editor, 145) THEN TRUE WHEN user_is_tgm (sire.tourist, 145) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-10 11:04:19 Duration: 2s138ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
2 1s562ms 1s604ms 1s583ms 2 3s166ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and cagess."cageName" like (?) and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Mar 10 10 1 1s604ms 1s604ms 15 1 1s562ms 1s562ms [ User: labanimal - Total duration: 3s166ms - Times executed: 2 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 3s166ms - Times executed: 2 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 457) THEN TRUE WHEN user_is_tgm (dam.editor, 457) THEN TRUE WHEN user_is_tgm (dam.tourist, 457) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 457) THEN TRUE WHEN user_is_tgm (sire.editor, 457) THEN TRUE WHEN user_is_tgm (sire.tourist, 457) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('49-128') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-10 10:06:28 Duration: 1s604ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 183) THEN TRUE WHEN user_is_tgm (dam.editor, 183) THEN TRUE WHEN user_is_tgm (dam.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 183) THEN TRUE WHEN user_is_tgm (sire.editor, 183) THEN TRUE WHEN user_is_tgm (sire.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('54-060') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-10 15:09:18 Duration: 1s562ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
3 1s409ms 1s424ms 1s418ms 3 4s255ms select tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, string_agg(distinct issuer_user."fullName", ?) as issued_by, tk.time_issued, string_agg(distinct agent_user."fullName", ?) as completed_by, tk.time_completed from tasks tk inner join "targetgroupMembers" issuer on issuer.targetgroup = tk.owner inner join ( select "targetgroupMembers".targetgroup, users.* from "targetgroupMembers" inner join users on users.id = "targetgroupMembers"."user") issuer_user on issuer_user.targetgroup = tk.owner left join "targetgroupMembers" agent on agent.targetgroup = tk.agent left join ( select "targetgroupMembers".targetgroup, users.* from "targetgroupMembers" inner join users on users.id = "targetgroupMembers"."user") agent_user on agent_user.targetgroup = tk.agent where (user_is_tgm (tk.owner, ?) or user_is_tgm (tk.agent, ?)) and tk.task_status like ? group by tk.id;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Mar 10 11 2 2s834ms 1s417ms 15 1 1s421ms 1s421ms [ User: labanimal - Total duration: 4s255ms - Times executed: 3 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s846ms - Times executed: 2 ]
[ Application: _desktop_index.php_search_status__25_no_subtasks_true_command_t - Total duration: 1s409ms - Times executed: 1 ]
-
SELECT tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, STRING_AGG(DISTINCT issuer_user."fullName", ';') AS issued_by, tk.time_issued, STRING_AGG(DISTINCT agent_user."fullName", ';') AS completed_by, tk.time_completed FROM tasks tk INNER JOIN "targetgroupMembers" issuer ON issuer.targetgroup = tk.owner INNER JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") issuer_user ON issuer_user.targetgroup = tk.owner LEFT JOIN "targetgroupMembers" agent ON agent.targetgroup = tk.agent LEFT JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") agent_user ON agent_user.targetgroup = tk.agent WHERE (user_is_tgm (tk.owner, 47) OR user_is_tgm (tk.agent, 47)) AND tk.task_status LIKE '%' GROUP BY tk.id;
Date: 2026-03-10 11:57:03 Duration: 1s424ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, STRING_AGG(DISTINCT issuer_user."fullName", ';') AS issued_by, tk.time_issued, STRING_AGG(DISTINCT agent_user."fullName", ';') AS completed_by, tk.time_completed FROM tasks tk INNER JOIN "targetgroupMembers" issuer ON issuer.targetgroup = tk.owner INNER JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") issuer_user ON issuer_user.targetgroup = tk.owner LEFT JOIN "targetgroupMembers" agent ON agent.targetgroup = tk.agent LEFT JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") agent_user ON agent_user.targetgroup = tk.agent WHERE (user_is_tgm (tk.owner, 10100000) OR user_is_tgm (tk.agent, 10100000)) AND tk.task_status LIKE '%' GROUP BY tk.id;
Date: 2026-03-10 15:49:15 Duration: 1s421ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT tk.id, tk.name, tk.active, tk.task_status, tk.done, tk.prio_agent, tk.deadline, tk.link, STRING_AGG(DISTINCT issuer_user."fullName", ';') AS issued_by, tk.time_issued, STRING_AGG(DISTINCT agent_user."fullName", ';') AS completed_by, tk.time_completed FROM tasks tk INNER JOIN "targetgroupMembers" issuer ON issuer.targetgroup = tk.owner INNER JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") issuer_user ON issuer_user.targetgroup = tk.owner LEFT JOIN "targetgroupMembers" agent ON agent.targetgroup = tk.agent LEFT JOIN ( SELECT "targetgroupMembers".targetgroup, users.* FROM "targetgroupMembers" INNER JOIN users ON users.id = "targetgroupMembers"."user") agent_user ON agent_user.targetgroup = tk.agent WHERE (user_is_tgm (tk.owner, 47) OR user_is_tgm (tk.agent, 47)) AND tk.task_status LIKE '%' GROUP BY tk.id;
Date: 2026-03-10 11:59:03 Duration: 1s409ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_search_status__25_no_subtasks_true_command_t Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
4 767ms 961ms 856ms 4 3s425ms select p_update_breedings (?, null, ?, ?::date, null, ?::text, ?::text, null) as id;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Mar 10 10 3 2s501ms 833ms 11 1 923ms 923ms [ User: labanimal - Total duration: 3s425ms - Times executed: 4 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 3s425ms - Times executed: 4 ]
-
SELECT p_update_breedings (457, NULL, 16072, '2026-03-10'::date, NULL, '10293596'::text, '10296174'::text, NULL) AS id;
Date: 2026-03-10 10:27:02 Duration: 961ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT p_update_breedings (457, NULL, 7157, '2026-03-10'::date, NULL, '10281703'::text, '10295131'::text, NULL) AS id;
Date: 2026-03-10 11:06:00 Duration: 923ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT p_update_breedings (457, NULL, 16021, '2026-03-10'::date, NULL, '10293602'::text, '10294671'::text, NULL) AS id;
Date: 2026-03-10 10:27:59 Duration: 773ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
5 535ms 2s138ms 763ms 1,440 18m18s create index if not exists idx_db_top_queries_tenant on observability.db_top_queries (tenant_key, collected_at desc);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
6 535ms 2s138ms 763ms 1,440 18m18s create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
7 535ms 2s138ms 763ms 1,440 18m18s create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
8 535ms 2s138ms 763ms 1,440 18m18s create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
9 535ms 2s138ms 763ms 1,440 18m18s create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
10 535ms 2s138ms 763ms 1,440 18m18s create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
11 535ms 2s138ms 763ms 1,440 18m18s create table if not exists observability.db_top_queries ( id bigserial primary key, tenant_key text not null, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz not null default now() );Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
12 535ms 2s138ms 763ms 1,440 18m18s create table if not exists observability.nginx_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
13 535ms 2s138ms 763ms 1,440 18m18s create table if not exists observability.phpfpm_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
14 535ms 2s138ms 763ms 1,440 18m18s create schema if not exists observability;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
15 535ms 2s138ms 763ms 1,440 18m18s create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
16 535ms 2s138ms 763ms 1,440 18m18s create table if not exists observability.uptime_checks ( id bigserial primary key, endpoint text not null, status text not null, latency_ms double precision, checked_at timestamptz not null default now() );Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Mar 10 00 60 0ms 0ms 01 60 28s599ms 476ms 02 60 59s172ms 986ms 03 60 59s172ms 986ms 04 60 59s172ms 986ms 05 60 59s172ms 986ms 06 60 58s825ms 980ms 07 60 38s351ms 639ms 08 60 38s449ms 640ms 09 60 39s399ms 656ms 10 60 49s176ms 819ms 11 60 41s368ms 689ms 12 60 1m24s 1s409ms 13 60 56s691ms 944ms 14 60 33s413ms 556ms 15 60 1m11s 1s197ms 16 60 1m1s 1s22ms 17 60 37s402ms 623ms 18 60 37s402ms 623ms 19 60 37s402ms 623ms 20 60 37s402ms 623ms 21 60 36s337ms 605ms 22 60 35s627ms 593ms 23 60 38s577ms 642ms [ User: labanimal - Total duration: 18m18s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 11:05:01 Duration: 2s138ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:00:01 Duration: 1s649ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-10 15:37:01 Duration: 1s562ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
17 704ms 709ms 706ms 3 2s118ms select count(distinct animal_id) AS "count" from ( select animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join animals a on a."animalID" = animals_search_mview.animal_id left join breedings b on b.id = animals_search_mview.last_mating) data where species = ? and fate = ? and alive = ? and deleted = ? and (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Mar 10 08 3 2s118ms 706ms [ User: labanimal - Total duration: 2s118ms - Times executed: 3 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s118ms - Times executed: 3 ]
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE species = 1 AND fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 08:56:23 Duration: 709ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE species = 1 AND fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 08:55:12 Duration: 704ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE species = 1 AND fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 08:55:07 Duration: 704ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
18 655ms 674ms 665ms 7 4s655ms select count(distinct animal_id) AS "count" from ( select animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join animals a on a."animalID" = animals_search_mview.animal_id left join breedings b on b.id = animals_search_mview.last_mating) data where fate = ? and alive = ? and deleted = ? and (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Mar 10 09 1 663ms 663ms 10 1 655ms 655ms 11 2 1s332ms 666ms 15 2 1s341ms 670ms 16 1 662ms 662ms [ User: labanimal - Total duration: 4s655ms - Times executed: 7 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 4s655ms - Times executed: 7 ]
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 490) AS is_owner, user_is_tgm (animals_search_mview.editor, 490) AS is_editor, user_is_tgm (animals_search_mview.tourist, 490) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 11:06:56 Duration: 674ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 10100176) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100176) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100176) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 15:37:22 Duration: 672ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 10100176) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100176) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100176) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-03-10 15:37:19 Duration: 669ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
19 659ms 664ms 661ms 3 1s984ms select distinct * from ( select animals_search_mview.*, b.unbreeding_date, fates.loc as fate_name, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, string_agg(l."application_id" || ? || l."title" || ? || date(lh."timestamp")::varchar, ?) as licensehistory, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview inner join fates on fates.id = animals_search_mview.fate left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join licenses l on l.id = lh.licid left join breedings b on b.id = animals_search_mview.last_mating group by animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data where data.species = ? and data.fate = ? and data.alive = ? and data.deleted = ? and (is_owner or is_editor or is_tourist) and (data.straindeleted = ? or data.straindeleted is null) order by data.cage_name, data.animal_id, data.name;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Mar 10 08 3 1s984ms 661ms [ User: labanimal - Total duration: 1s984ms - Times executed: 3 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 1s984ms - Times executed: 3 ]
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.species = 1 AND data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 08:56:24 Duration: 664ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.species = 1 AND data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 08:55:13 Duration: 660ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 47) AS is_owner, user_is_tgm (animals_search_mview.editor, 47) AS is_editor, user_is_tgm (animals_search_mview.tourist, 47) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.species = 1 AND data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 08:55:08 Duration: 659ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
20 614ms 632ms 620ms 7 4s343ms select distinct * from ( select animals_search_mview.*, b.unbreeding_date, fates.loc as fate_name, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, string_agg(l."application_id" || ? || l."title" || ? || date(lh."timestamp")::varchar, ?) as licensehistory, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview inner join fates on fates.id = animals_search_mview.fate left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join licenses l on l.id = lh.licid left join breedings b on b.id = animals_search_mview.last_mating group by animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data where data.fate = ? and data.alive = ? and data.deleted = ? and (is_owner or is_editor or is_tourist) and (data.straindeleted = ? or data.straindeleted is null) order by data.cage_name, data.animal_id, data.name;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Mar 10 09 1 616ms 616ms 10 1 614ms 614ms 11 2 1s239ms 619ms 15 2 1s250ms 625ms 16 1 623ms 623ms [ User: labanimal - Total duration: 4s343ms - Times executed: 7 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 4s343ms - Times executed: 7 ]
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 10100176) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100176) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100176) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 15:37:20 Duration: 632ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 490) AS is_owner, user_is_tgm (animals_search_mview.editor, 490) AS is_editor, user_is_tgm (animals_search_mview.tourist, 490) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 11:06:56 Duration: 625ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 10100007) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100007) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100007) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-03-10 16:29:11 Duration: 623ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 73,438 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 0 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
- 28 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 12 Max number of times the same event was reported
- 28 Total events found
Rank Times reported Error 1 12 ERROR: insert or update on table "..." violates foreign key constraint "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Mar 10 09 5 12 1 14 1 19 5 - ERROR: insert or update on table "users" violates foreign key constraint "users_group_fkey"
- ERROR: insert or update on table "users" violates foreign key constraint "users_group_fkey"
- ERROR: insert or update on table "users" violates foreign key constraint "users_group_fkey"
Detail: Key (group)=(0) is not present in table "groups".
Context: SQL statement "UPDATE users SET "name" = theUserName, "title" = theTitle, "group" = theGroup, "role" = theRole, "fullName" = theFullName, "eMail" = theEmail, "disablemail" = ifDisableMail, "language" = theLanguage, "affiliation" = theAffiliation, "ILVnum" = theILVNumber, "FEMnum" = theFEMNumber, "costCentre" = theCostCenter, "internInstructionNR" = theInternInstructionNr, "mailHost" = theMailHost, "mailPort" = theMailPort, "mailMethod" = theMailMethod, "mailSSL" = ifMailSSL, "mailUser" = theMailUser, "mailPass" = theMailPassword, "screens" = theScreens, "actions" = theActions, "available" = theAvailable, "active" = theActive WHERE id = theId" PL/pgSQL function p_create_user(integer,text,text,boolean,integer,bigint,text,text,text,boolean,integer,integer,text,text,text,text,text,text,boolean,text,text,text,text,text,boolean) line 41 at SQL statement
Statement: SELECT p_create_user(424, 'Nickel_A', 'e8b4b04bc1863e871dc7a96903e3e778', true, 0, 3, 'Ag Nickel', 'Nickel, Alexander', 'Nickel_A@ukw.de', false, 0, 13, NULL, NULL, NULL, '', NULL, 'imap', false, NULL, NULL, NULL, NULL, NULL, true)Date: 2026-03-10 09:20:13 Database: zemm_produktiv_8 Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Detail: Key (group)=(0) is not present in table "groups".
Context: SQL statement "UPDATE users SET "name" = theUserName, "title" = theTitle, "group" = theGroup, "role" = theRole, "fullName" = theFullName, "eMail" = theEmail, "disablemail" = ifDisableMail, "language" = theLanguage, "affiliation" = theAffiliation, "ILVnum" = theILVNumber, "FEMnum" = theFEMNumber, "costCentre" = theCostCenter, "internInstructionNR" = theInternInstructionNr, "mailHost" = theMailHost, "mailPort" = theMailPort, "mailMethod" = theMailMethod, "mailSSL" = ifMailSSL, "mailUser" = theMailUser, "mailPass" = theMailPassword, "screens" = theScreens, "actions" = theActions, "available" = theAvailable, "active" = theActive WHERE id = theId" PL/pgSQL function p_create_user(integer,text,text,boolean,integer,bigint,text,text,text,boolean,integer,integer,text,text,text,text,text,text,boolean,text,text,text,text,text,boolean) line 41 at SQL statement
Statement: SELECT p_create_user(424, 'Nickel_A', 'e8b4b04bc1863e871dc7a96903e3e778', true, 0, 3, 'Ag Nickel', 'Nickel, Alexander', 'Nickel_A@ukw.de', false, 0, 13, NULL, NULL, NULL, '', NULL, 'imap', false, NULL, NULL, NULL, NULL, NULL, true)Date: 2026-03-10 09:20:33 Database: zemm_produktiv_8 Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Detail: Key (group)=(0) is not present in table "groups".
Context: SQL statement "UPDATE users SET "name" = theUserName, "title" = theTitle, "group" = theGroup, "role" = theRole, "fullName" = theFullName, "eMail" = theEmail, "disablemail" = ifDisableMail, "language" = theLanguage, "affiliation" = theAffiliation, "ILVnum" = theILVNumber, "FEMnum" = theFEMNumber, "costCentre" = theCostCenter, "internInstructionNR" = theInternInstructionNr, "mailHost" = theMailHost, "mailPort" = theMailPort, "mailMethod" = theMailMethod, "mailSSL" = ifMailSSL, "mailUser" = theMailUser, "mailPass" = theMailPassword, "screens" = theScreens, "actions" = theActions, "available" = theAvailable, "active" = theActive WHERE id = theId" PL/pgSQL function p_create_user(integer,text,text,boolean,integer,bigint,text,text,text,boolean,integer,integer,text,text,text,text,text,text,boolean,text,text,text,text,text,boolean) line 41 at SQL statement
Statement: SELECT p_create_user(424, 'Nickel_A', 'e8b4b04bc1863e871dc7a96903e3e778', true, 0, 3, 'Ag Nickel', 'Nickel, Alexander', 'Nickel_A@ukw.de', false, 0, 13, NULL, NULL, NULL, '', NULL, 'imap', false, NULL, NULL, NULL, NULL, NULL, true)Date: 2026-03-10 09:22:06 Database: zemm_produktiv_8 Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
2 7 FATAL: database "..." does not exist
Times Reported Most Frequent Error / Event #2
Day Hour Count Mar 10 08 2 11 3 21 2 - FATAL: database "monitoring" does not exist
- FATAL: database "monitoring" does not exist
- FATAL: database "monitoring" does not exist
Date: 2026-03-10 08:42:23 Database: monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Date: 2026-03-10 08:42:28 Database: monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Date: 2026-03-10 11:32:12 Database: monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
3 4 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #3
Day Hour Count Mar 10 00 4 - LOG: could not receive data from client: Connection timed out
- LOG: could not receive data from client: Connection timed out
- LOG: could not receive data from client: Connection timed out
Date: 2026-03-10 00:47:50 Database: zemm_produktiv_8 Application: DBeaver 25.3.4 - SQLEditor 'Script-230.sql' User: labanimal Remote: 94.31.109.76 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Date: 2026-03-10 00:47:50 Database: zemm_produktiv_8 Application: DBeaver 25.3.4 - SQLEditor 'Script-231.sql' User: labanimal Remote: 94.31.109.76 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Date: 2026-03-10 00:47:50 Database: zemm_produktiv_8 Application: DBeaver 25.3.4 - Main 'zemm_produktiv_8' User: labanimal Remote: 94.31.109.76 Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
4 2 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #4
Day Hour Count Mar 10 10 1 13 1 - ERROR: duplicate key value violates unique constraint "metrics_timeseries_tenant_key_metric_name_bucket_start_buck_key"
- ERROR: duplicate key value violates unique constraint "metrics_timeseries_tenant_key_metric_name_bucket_start_buck_key"
Detail: Key (tenant_key, metric_name, bucket_start, bucket_width_seconds)=(prod, http_requests_total, 2026-03-10 10:43:00+01, 60) already exists.
Statement: INSERT INTO observability.metrics_timeseries (tenant_key, metric_name, bucket_start, bucket_width_seconds, sum_value, count_value, histogram) VALUES ($1, $2, $3, $4, $5, $6, $7)Date: 2026-03-10 10:43:07 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Detail: Key (tenant_key, metric_name, bucket_start, bucket_width_seconds)=(prod, http_requests_total, 2026-03-10 13:57:00+01, 60) already exists.
Statement: INSERT INTO observability.metrics_timeseries (tenant_key, metric_name, bucket_start, bucket_width_seconds, sum_value, count_value, histogram) VALUES ($1, $2, $3, $4, $5, $6, $7)Date: 2026-03-10 13:57:01 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
5 2 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #5
Day Hour Count Mar 10 20 1 21 1 - ERROR: column "time_issued" does not exist
- ERROR: column "id" does not exist
Statement: SELECT COUNT(*) FILTER (WHERE NOT deleted) AS open_task_changes, COUNT(*) FILTER (WHERE NOT deleted AND status_new = '2') AS new_task_changes, COUNT(*) FILTER (WHERE NOT deleted AND time_issued < now() - interval '7 days') AS older_than_7d, MIN(time_issued) FILTER (WHERE NOT deleted) AS oldest_open_change, MAX(time_issued) FILTER (WHERE NOT deleted) AS newest_open_change FROM tasks_changes
Date: 2026-03-10 20:36:15 Database: zemm_produktiv_7 Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
Statement: SELECT id, command FROM sys_screens WHERE command IN ('licences','experiments') ORDER BY command
Date: 2026-03-10 21:10:09 Database: zemm_produktiv_7 Application: zemm_produktiv_7:localhost:5432 User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv
6 1 ERROR: operator does not exist: character = integer
Times Reported Most Frequent Error / Event #6
Day Hour Count Mar 10 20 1 - ERROR: operator does not exist: character = integer
Hint: No operator matches the given name and argument types. You might need to add explicit type casts.
Statement: SELECT COUNT(*) FILTER (WHERE NOT deleted) AS open_task_changes, COUNT(*) FILTER (WHERE NOT deleted AND status_new = 2) AS new_task_changes, COUNT(*) FILTER (WHERE NOT deleted AND time_issued < now() - interval '7 days') AS older_than_7d, MIN(time_issued) FILTER (WHERE NOT deleted) AS oldest_open_change, MAX(time_issued) FILTER (WHERE NOT deleted) AS newest_open_change FROM tasks_changesDate: 2026-03-10 20:35:58 Database: zemm_produktiv_7 Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-10_000000.csv