After execute, there is no response.
But executing the same SQL using other tools takes less than a second.
Just an SQL for (left join + count) ---->(SELECT count(*) from ces_25 left join ces_5555 on ces_25.qq = ces_5555.sd).
I hope you can reply to me as soon as possible. Thank you in advance as soon as possible
public Mono<ServerResponse> queryValue(ServerRequest serverRequest) { return serverRequest.bodyToMono(QueryValueDTO.class) .flatMap( dto -> Mono.from(r2dbcEntityTemplate.getDatabaseClient().getConnectionFactory().create()) .flatMap(connection -> Mono.from(connection.createStatement(dto.getT()).execute())) .flatMap(x->{ return Mono.from(x.map((row,rowMetadata)->{ Object o = row.get(0); System.out.println(o); return o; })); }) .flatMap(this::ok)) .contextWrite(context -> context.put(DynamicDataSourceConstant.DATA_SOURCE_KEY, DynamicDataSourceConstant.DATA_SOURCE_KEY + context.get(TenantConstant.TENANT_ID))); }
After execute, there is no response. But executing the same SQL using other tools takes less than a second. Just an SQL for (left join + count) ---->(SELECT count(*) from ces_25 left join ces_5555 on ces_25.qq = ces_5555.sd).
I hope you can reply to me as soon as possible. Thank you in advance as soon as possible