add breaking changes

This commit is contained in:
steve-chavez
2023-05-11 01:37:50 -03:00
committed by Steve Chavez
parent dec1e03a0e
commit c56108b8a9
2 changed files with 7 additions and 41 deletions
-39
View File
@@ -415,42 +415,3 @@ You can call overloaded functions with different number of arguments.
.. important::
Overloaded functions with the same argument names but different types are not supported.
.. _bulk_call:
Bulk Call
---------
It's possible to call a function in a bulk way, analogously to :ref:`bulk_insert`. To do this, you need to add the
``Prefer: params=multiple-objects`` header to your request.
.. tabs::
.. code-tab:: http
POST /rpc/add_them HTTP/1.1
Content-Type: text/csv
Prefer: params=multiple-objects
a,b
1,2
3,4
.. code-tab:: bash Curl
curl "http://localhost:3000/rpc/add_them" \
-X POST -H "Content-Type: text/csv" \
-H "Prefer: params=multiple-objects" \
--data-binary @- << EOF
a,b
1,2
3,4
EOF
.. code-block:: json
[ 3, 7 ]
If you have large payloads to process, it's preferable you instead use a function with an :ref:`array parameter <s_procs_array>` or JSON parameter, as this will be more efficient.
It's also possible to :ref:`Specify Columns <specify_columns>` on functions calls.