git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a575098) | patch
Improve the efficiency of certain jsonb get operations.
Sun, 1 Jun 2014 23:04:02 +0000 (19:04 -0400)
Sun, 1 Jun 2014 23:04:02 +0000 (19:04 -0400)
commit 1a4174a498a15a848d4c4c50a3a9ef500926e4bd
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.
src/backend/utils/adt/jsonfuncs.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /