Skip to content

Commit

Permalink
Implement double-buffering
Browse files Browse the repository at this point in the history
Updating ODBCABSTRACTION_GIT_TAG.
This implements buffering of FlightStreamChunks, allowing the driver to
better leverage IO, as results are buffered as they arrive and can be
consumed afterwards when the client requests them.
This adds a new connection property "ChunkBufferCapacity" to set the
buffer capacity with a default value of 5.

Change-Id: I764b7ea16e8127499ff4c1a42d7d0a02ca79c97c
  • Loading branch information
Rafael Telles committed Jul 28, 2022
1 parent a1eed76 commit 187e3e8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ if (NOT ODBCABSTRACTION_GIT_TAG)
if (DEFINED ENV{ODBCABSTRACTION_GIT_TAG})
set(ODBCABSTRACTION_GIT_TAG "$ENV{ODBCABSTRACTION_GIT_TAG}")
else()
set(ODBCABSTRACTION_GIT_TAG "ca2c6c71e037a0e3b71bf43194ac92a803696417")
set(ODBCABSTRACTION_GIT_TAG "0a310d64d5bdf0aa9d2922edda62b644a3d35251")
endif()
endif()

Expand Down
2 changes: 1 addition & 1 deletion build-debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cd _build
ARROW_GIT_REPOSITORY="${ARROW_GIT_REPOSITORY:=https://github.com/apache/arrow}"
ARROW_GIT_TAG="${ARROW_GIT_TAG:=b050bd0d31db6412256cec3362c0d57c9732e1f2}"
ODBCABSTRACTION_REPO="${ODBCABSTRACTION_REPO:=/opt/flightsql-odbc}"
ODBCABSTRACTION_GIT_TAG="${ODBCABSTRACTION_GIT_TAG:=ca2c6c71e037a0e3b71bf43194ac92a803696417}"
ODBCABSTRACTION_GIT_TAG="${ODBCABSTRACTION_GIT_TAG:=0a310d64d5bdf0aa9d2922edda62b644a3d35251}"

cmake \
-GNinja \
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd _build
ARROW_GIT_REPOSITORY="${ARROW_GIT_REPOSITORY:=https://github.com/apache/arrow}"
ARROW_GIT_TAG="${ARROW_GIT_TAG:=b050bd0d31db6412256cec3362c0d57c9732e1f2}"
ODBCABSTRACTION_REPO="${ODBCABSTRACTION_REPO:=/opt/flightsql-odbc}"
ODBCABSTRACTION_GIT_TAG="${ODBCABSTRACTION_GIT_TAG:=ca2c6c71e037a0e3b71bf43194ac92a803696417}"
ODBCABSTRACTION_GIT_TAG="${ODBCABSTRACTION_GIT_TAG:=0a310d64d5bdf0aa9d2922edda62b644a3d35251}"

cmake \
-GNinja \
Expand Down
2 changes: 1 addition & 1 deletion build_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cd build
ARROW_GIT_REPOSITORY="${ARROW_GIT_REPOSITORY:=https://github.com/apache/arrow}"
ARROW_GIT_TAG="${ARROW_GIT_TAG:=b050bd0d31db6412256cec3362c0d57c9732e1f2}"
ODBCABSTRACTION_REPO="${ODBCABSTRACTION_REPO:=../flightsql-odbc}"
ODBCABSTRACTION_GIT_TAG="${ODBCABSTRACTION_GIT_TAG:=ca2c6c71e037a0e3b71bf43194ac92a803696417}"
ODBCABSTRACTION_GIT_TAG="${ODBCABSTRACTION_GIT_TAG:=0a310d64d5bdf0aa9d2922edda62b644a3d35251}"

cmake \
-DCMAKE_BUILD_TYPE=Release \
Expand Down
2 changes: 1 addition & 1 deletion build_win32.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SETLOCAL
if NOT DEFINED ARROW_GIT_REPOSITORY SET ARROW_GIT_REPOSITORY="https://github.com/apache/arrow"
if NOT DEFINED ARROW_GIT_TAG SET ARROW_GIT_TAG="b050bd0d31db6412256cec3362c0d57c9732e1f2"
if NOT DEFINED ODBCABSTRACTION_REPO SET ODBCABSTRACTION_REPO="../flightsql-odbc"
if NOT DEFINED ODBCABSTRACTION_GIT_TAG SET ODBCABSTRACTION_GIT_TAG="ca2c6c71e037a0e3b71bf43194ac92a803696417"
if NOT DEFINED ODBCABSTRACTION_GIT_TAG SET ODBCABSTRACTION_GIT_TAG="0a310d64d5bdf0aa9d2922edda62b644a3d35251"

cmake ..^
-DARROW_GIT_REPOSITORY=%ARROW_GIT_REPOSITORY%^
Expand Down
2 changes: 1 addition & 1 deletion build_win64.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SETLOCAL
if NOT DEFINED ARROW_GIT_REPOSITORY SET ARROW_GIT_REPOSITORY="https://github.com/apache/arrow"
if NOT DEFINED ARROW_GIT_TAG SET ARROW_GIT_TAG="b050bd0d31db6412256cec3362c0d57c9732e1f2"
if NOT DEFINED ODBCABSTRACTION_REPO SET ODBCABSTRACTION_REPO="../flightsql-odbc"
if NOT DEFINED ODBCABSTRACTION_GIT_TAG SET ODBCABSTRACTION_GIT_TAG="ca2c6c71e037a0e3b71bf43194ac92a803696417"
if NOT DEFINED ODBCABSTRACTION_GIT_TAG SET ODBCABSTRACTION_GIT_TAG="0a310d64d5bdf0aa9d2922edda62b644a3d35251"

cmake ..^
-DARROW_GIT_REPOSITORY=%ARROW_GIT_REPOSITORY%^
Expand Down

0 comments on commit 187e3e8

Please sign in to comment.