mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
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.
75 KiB
75 KiB