S.
11/03/2022, 10:14 PMio.r2dbc.postgresql.ExceptionFactory$PostgresqlNonTransientResourceException: [53300] sorry, too many clients already]
S.
11/03/2022, 10:16 PMS.
11/03/2022, 10:18 PMselect pg_terminate_backend(pid) from pg_stat_activity where datname = 'name';
Toshihiro Nakamura
11/04/2022, 3:34 PMS.
11/04/2022, 6:47 PMS.
11/04/2022, 7:19 PMToshihiro Nakamura
11/05/2022, 3:25 AMconn.runQuery {
val w1 = where { wordLevels.userId eq userId }
val w2 = where { wordLevels.wordId eq wordId }
QueryDsl.from(wordLevels).where(w1.and(w2))
}.firstOrNull()
Do you see any improvement with this change?S.
11/05/2022, 2:27 PMfirstOrNull()
? doesn't seem to change anything sadlyS.
11/05/2022, 4:58 PMS.
11/05/2022, 7:55 PMToshihiro Nakamura
11/06/2022, 9:21 AMS.
11/06/2022, 4:50 PM.option(ConnectionFactoryOptions.DRIVER, "pool")
.option(ConnectionFactoryOptions.PROTOCOL, "postgresql")
implementation("io.r2dbc:r2dbc-pool:0.9.2.RELEASE")
seems to work locally but when running it in docker I"m getting
Unable to create a ConnectionFactory for 'ConnectionFactoryOptions{options={database=, host=, driver=pool, password=REDACTED, protocol=postgresql, user=}}'. Available drivers: [ postgresql ]
Toshihiro Nakamura
11/07/2022, 1:55 PMS.
11/08/2022, 1:24 PMS.
11/08/2022, 3:24 PMCaused by: java.lang.IllegalArgumentException: Could not find delegating driver [postgresql]
in between, but now everything works. and I guess the connection pools should prevent the issue to begin with, thanks for the help!