diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2014-06-01 19:04:02 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2014-06-01 19:04:02 -0400 |
commit | 1a4174a498a15a848d4c4c50a3a9ef500926e4bd (patch) | |
tree | 10a829976e711a0c26c45ebf543f3984382cfd3a /src/backend/tcop/postgres.c | |
parent | a57509821c3147b2bf57560e3bce1641d78a7519 (diff) | |
download | postgresql-1a4174a498a15a848d4c4c50a3a9ef500926e4bd.tar.gz postgresql-1a4174a498a15a848d4c4c50a3a9ef500926e4bd.zip |
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