database: Bump up the size limit of packages.
We have 46 packages that are over the limit. I bump the limit for now
and need to think of a better way to handle large auto-generated
packages.
Fixes #488, #467
Change-Id: Id6ad5ab5e55bb6fa6b48c7a928fdec2ead26e168
Reviewed-on: https://go-review.googlesource.com/46394
Reviewed-by: Sarah Adams <shadams@google.com>
diff --git a/database/database.go b/database/database.go
index 8e33b0f..32fa2f2 100644
--- a/database/database.go
+++ b/database/database.go
@@ -250,7 +250,7 @@
gobBytes := snappy.Encode(nil, gobBuf.Bytes())
// Truncate large documents.
- if len(gobBytes) > 400000 {
+ if len(gobBytes) > 800000 {
pdocNew := *pdoc
pdoc = &pdocNew
pdoc.Truncated = true