Hi everybody,
We noticed that for initial loading offline sessions the OFFLINE_USER_SESSION table is missing an index on OFFLINE_FLAG, CREATED_ON, USER_SESSION_ID
Adding that index decreased initial loading time of offline sessions from 4 minutes to 35 seconds for 100K offline sessions in our setup. Since this time includes loading the OFFLINE_CLIENT_SESSION, that’s a dramatic decrease.
Furthermore, for the cron job to purge old offline sessions, and index on OFFLINE_FLAG, REALM_ID, LAST_SESSION_REFRESH would be helpful.
I know that doing database changes is not very popular atm, but is there any chance these indexes, especially the first one, could make it upstream?
Best regards,
Sebastian
Mit freundlichen Grüßen / Best regards
Dr.-Ing. Sebastian Schuster
Project Delivery Berlin 22 (IOC/PDL22)
Bosch.IO GmbH | Ullsteinstr. 128 | 12109 Berlin |
GERMANY | www.bosch.io
Tel. +49 30 726112-485 | Mobil +49 152 02177668 | Telefax +49 30 726112-100 |
Sebastian...@bosch.io
Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr. Stefan Ferber, Dr. Aleksandar Mitrovic, Yvonne Reckling
--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/fa73cbfffe2649aea75401d354402039%40bosch.io.
Hi Marek,
Completely understandable. I’ll ask the team if we would be able to implement https://issues.redhat.com/browse/KEYCLOAK-11908,
otherwise we’ll just add the index manually.
Best regards,
Sebastian
Mit freundlichen Grüßen / Best regards
Dr.-Ing. Sebastian Schuster
Project Delivery Berlin 22 (IOC/PDL22)
Bosch.IO GmbH | Ullsteinstr. 128 | 12109 Berlin |
GERMANY | www.bosch.io
Tel. +49 30 726112-485 | Mobil +49 152 02177668 | Telefax +49 30 726112-100 |
Sebastian...@bosch.io
Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr. Stefan Ferber, Dr. Aleksandar Mitrovic, Yvonne Reckling
Sorry Christian, I am just beginning to catch up on the ML. We are using MS SQL.
Best regards,
Sebastian
Mit freundlichen Grüßen / Best regards
Dr.-Ing.
Sebastian Schuster
Project Delivery Berlin 22 (IOC/PDL22)
Bosch.IO GmbH | Ullsteinstr. 128 | 12109 Berlin | GERMANY |
www.bosch.io
Tel. +49 30 726112-485 | Mobil +49 152 02177668 | Telefax +49 30 726112-100 | Threema / Threema Work: MF9VMEAE | Sebastian...@bosch.io
Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr. Stefan Ferber, Dr. Aleksandar Mitrovic, Yvonne Reckling
To view this discussion on the web visit
https://groups.google.com/d/msgid/keycloak-dev/79098140-bb73-4158-a64c-e141d3e75002n%40googlegroups.com.