Performance problems with Postgres JDBC 42.4.2

2023-11-06 Thread Jose Osinde
Dear all, I'm running a query from Java on a postgres database: Java version: 17 JDBC version: 42.4.2 Postgres version: 13.1 In parallel I'm testing the same queries from pgAdmin 4 version 6.13 The tables I'm using contains more than 10million rows each and I have two questions here: 1. I

Re: Select on partitioned table is very slow

2022-08-25 Thread Jose Osinde
You are right but the correct query is the one in the attached file. What we want to do here is to force psql to send the "wrong data types" to postgres and, as a result of this, get a bad plan. Cheers, Jose Osinde On Thu, Aug 25, 2022 at 3:48 PM Ranier Vilela wrote: > Em qui.,

Re: Select on partitioned table is very slow

2022-08-25 Thread Jose Osinde
and uses sec scans for all the cases. Attached the result. Again, many thanks for your help, Jose Osinde explain analyze select logical_identifier, version_id, lastproduct FROM test_product_ui_partition.product_ui pui WHERE pui.mission_id='urn:esa:psa:context:investigation:mission.em16

Select on partitioned table is very slow

2022-08-25 Thread Jose Osinde
partitioned table according to the partition key column (mission_id). In this case only that table is scanned, but again, using PARALLEL SEQ SCAN and not the INDEX SCAN Could you please provide any hint on the possible reasons of this behavior and the performance degradation that is affecting only the JAVA client. Best regards, Jose Osinde JdbcTest.java Description: Binary data