Commit Graph

14 Commits

Author SHA1 Message Date
98c510c1e8 improve the performance of numeric's ln(). 2022-08-05 09:34:12 +08:00
0c5e9903ce improve the performance of computing the square root of numeric.
before optimization:
openGauss=# explain analyse select sqrt(t0) from t_numeric limit 10000000;
                                                          QUERY PLAN
-------------------------------------------------------------------------------------------------------------------------------
 Limit  (cost=0.00..292129.20 rows=8468656 width=5) (actual time=4.152..170690.136 rows=8388608 loops=1)
   ->  Seq Scan on t_numeric  (cost=0.00..292129.20 rows=8468656 width=5) (actual time=4.150..169250.862 rows=8388608 loops=1)
 Total runtime: 171767.268 ms
(3 rows)

Time: 171768.179 ms

after optimization:
openGauss=#  explain analyse select sqrt(t0) from t_numeric limit 10000000;
                                                          QUERY PLAN
-------------------------------------------------------------------------------------------------------------------------------
 Limit  (cost=0.00..292129.20 rows=8468656 width=5) (actual time=3.850..129299.312 rows=8388608 loops=1)
   ->  Seq Scan on t_numeric  (cost=0.00..292129.20 rows=8468656 width=5) (actual time=3.848..127801.242 rows=8388608 loops=1)
 Total runtime: 130378.841 ms
(3 rows)

Time: 130379.709 ms
2022-08-04 14:25:23 +08:00
812f586beb Reduce memory allocation and deallocation to improve the computational performance of numeric digits.
before optimization:
openGauss=# explain analyse select sqrt(t0) from t_numeric limit 10000000;
                                                          QUERY PLAN

-------------------------------------------------------------------------------------------
------------------------------------
 Limit  (cost=0.00..197973.49 rows=8386919 width=5) (actual time=0.054..167434.766 rows=838
8608 loops=1)
   ->  Seq Scan on t_numeric  (cost=0.00..197973.49 rows=8386919 width=5) (actual time=0.05
3..166061.081 rows=8388608 loops=1)
 Total runtime: 168495.866 ms
(3 rows)

Time: 168499.243 ms

after optimization:
openGauss=# explain analyse select sqrt(t0) from t_numeric limit 10000000;
                                                          QUERY PLAN

-------------------------------------------------------------------------------------------
------------------------------------
 Limit  (cost=0.00..197973.49 rows=8386919 width=5) (actual time=0.045..151376.445 rows=838
8608 loops=1)
   ->  Seq Scan on t_numeric  (cost=0.00..197973.49 rows=8386919 width=5) (actual time=0.04
4..150108.807 rows=8388608 loops=1)
 Total runtime: 152469.050 ms
(3 rows)

Time: 152472.278 ms
2022-07-28 21:58:16 +08:00
a8da82a0fb Implementation of keyword ignore: using hint string 2022-06-20 15:46:28 +08:00
de223dd152 sync code 2022-03-04 23:22:16 +08:00
c7b25efcff New features (and bug fixes)
1. alter large sequence
    2. subpartition
    2.1 split subpartition
    2.2 truncate subpartition
    3. 支持load
    4. 支持start-with/connect-by
    5. ...
2021-12-29 21:33:28 +08:00
1d540f4462 Patch for 930 release 2021-09-23 15:19:37 +08:00
ecf980b67b codestyle 2021-09-02 20:28:19 +08:00
4151b06669 support jsonb 2021-05-19 21:22:02 +08:00
1567043064 同步source code
日期: 12-26
    revision: ee5b054c
2020-12-28 22:19:21 +08:00
2db9cd5fa5 !91 pgdb compatibility support
Merge pull request !91 from 吴岳川/master
2020-08-10 10:01:53 +08:00
19ceba3326 pg compatibility support 2020-08-10 09:23:51 +08:00
e2f884c4ba mod not allow divide by zero 2020-08-06 18:51:52 +08:00
815a9771fb first commit for openGauss server 2020-06-30 17:38:27 +08:00