RE: Same query 10000x More Time

2022-01-06 Thread Avi Weinberg
68 rows=112 loops=1)" "Planning Time: 0.237 ms" "Execution Time: 62184.253 ms" From: Vijaykumar Jain [mailto:[email protected]] Sent: Thursday, January 6, 2022 2:53 PM To: Avi Weinberg Cc: Kyotaro Horiguchi ; pgsql-performa. Subject: Re: Same query 1

RE: Same query 10000x More Time

2022-01-06 Thread Avi Weinberg
. select lnk.* into local_1 from tbl_link lnk where id in (select 140 as id union select 144 union select 148) -Original Message- From: Kyotaro Horiguchi [mailto:[email protected]] Sent: Thursday, January 6, 2022 11:39 AM To: [email protected] Cc: Avi Weinberg ;

Same query 10000x More Time

2022-01-05 Thread Avi Weinberg
Hi I have postgres_fdw table called tbl_link. The source table is 2.5 GB in size with 122 lines (some lines has 70MB bytea column, but not the ones I select in the example) I noticed that when I put the specific ids in the list "where id in (140,144,148)" it works fast (few ms), but when I put