Skip to content

Commit

Permalink
Add data batching when inserting data. (#10)
Browse files Browse the repository at this point in the history
* Add data batching when inserting data.
  • Loading branch information
fryckbos authored Apr 4, 2018
1 parent 6d78e9f commit 8efdc75
Show file tree
Hide file tree
Showing 7 changed files with 355 additions and 80 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ before_install:
- export GOARCH="${MY_GOARCH}"
install:
- export GOPATH=`pwd`
- export CGO_ENABLED=0
- mkdir -p bin
script:
- go build -o bin/coscale-cli$EXTENSION coscale
- if [ "$GOOS" == "linux" ]; then
go test -timeout 20m -a -v coscale/... || travis_terminate 1;
fi
- go build -a -tags netgo -ldflags '-w' -o bin/coscale-cli$EXTENSION coscale
deploy:
provider: releases
api_key:
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
export GOPATH=`pwd`
mkdir -p bin

CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w' -o bin/coscale-cli coscale
2 changes: 2 additions & 0 deletions src/coscale/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const (
DEFAULT_STRING_VALUE string = `!>dUmmy<!`
// DEFAULT_INT64_VALUE defines the default value for an integer flag.
DEFAULT_INT64_VALUE int64 = math.MinInt64
// MaxUploadSize for data call.
MaxUploadSize int = 10 * 1024 * 1024 // 10MB
)

const (
Expand Down
Loading

0 comments on commit 8efdc75

Please sign in to comment.