reduce buffer size
This commit is contained in:
parent
ee573a3bbc
commit
068871ea0c
|
@ -34,7 +34,7 @@ const (
|
||||||
|
|
||||||
var (
|
var (
|
||||||
mqpp = NewMysqlQueryPiecePool()
|
mqpp = NewMysqlQueryPiecePool()
|
||||||
localSliceBufferPool = NewSliceBufferPool("json cache", 1*1024*1024)
|
localSliceBufferPool = NewSliceBufferPool("json cache", 256*1024)
|
||||||
)
|
)
|
||||||
|
|
||||||
var commonBaseQueryPiece = &BaseQueryPiece{}
|
var commonBaseQueryPiece = &BaseQueryPiece{}
|
||||||
|
|
|
@ -93,10 +93,9 @@ const (
|
||||||
|
|
||||||
|
|
||||||
// Identifier length limitations.
|
// Identifier length limitations.
|
||||||
// See https://dev.mysql.com/doc/refman/5.7/en/identifiers.html
|
|
||||||
const (
|
const (
|
||||||
// MaxMysqlPacketLen is the max packet payload length.
|
// MaxMysqlPacketLen is the max packet payload length.
|
||||||
MaxMysqlPacketLen = 512 * 1024
|
MaxMysqlPacketLen = 128 * 1024
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Loading…
Reference in New Issue