|
Ran
|
Jobs
1
|
Files
114
|
Run time
1min
|
Badge
README BADGES
|
push
github
Fix parallel query execution for TSQL statements post community commit <a class=hub.com/babelfish-for-postgresql/babelfish_extensions/commit/7f07ff583ea8d55bb32853de40c3a9b69644c80f">7f07ff583 (#3519) Community commit 7f07ff583ea8d55bb32853de40c3a9b69644c80f simplified executor code to decide whether to use parallel query. Based on the new condition executor will never pick parallel operation if numberTuples != 0 is non zero, which happens when we put a limit on number of tuples that can be returned by executor. In Babelfish we were always initializing the rowcount as INT_MAX and the setting numberTuples = rowcount, which means babelfish select query will never be able to use parallelism even though it could. The correct default value for row count should always have been zero meaning no LIMIT. Even with this patch, queries will not use parallel query when row count is set to a non zero value by user. A very simple example with & without this patch ''' SELECT * INTO t FROM generate_series(1,10000000) GO SELECT COUNT(*) FROM t GO -- With patch SELECT COUNT(*) FROM t Clock Time (ms.): total 526 avg 526.0 (1.9 xacts per sec.) -- Without patch SELECT COUNT(*) FROM t Clock Time (ms.): total 1427 avg 1427.0 (0.7 xacts per sec.) ''' Signed-off-by: Tanzeel Khan <tzlkhan@amazon.com>
43333 of 58682 relevant lines covered (73.84%)
146258.15 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 13454343842.1 | 114 |
73.84 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|