summaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorAndrew Dunstan2014-06-01 23:04:02 +0000
committerAndrew Dunstan2014-06-01 23:04:02 +0000
commit1a4174a498a15a848d4c4c50a3a9ef500926e4bd (patch)
tree10a829976e711a0c26c45ebf543f3984382cfd3a /src/backend/tcop/postgres.c
parenta57509821c3147b2bf57560e3bce1641d78a7519 (diff)
Improve the efficiency of certain jsonb get operations.
Instead of iterating over jsonb structures, use the inbuilt functions findJsonbValueFromContainerLen() and getIthJsonbValueFromContainer() to extract values directly. These functions use algorithms that are O(n log n) and O(1) respectively, whereas iterating is O(n), so we should see considerable speedup here. Teodor Sigaev.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions