Skip to content

Commit

Permalink
Merge pull request prisma#2143 from graphcool/ReduceExportChunkSize
Browse files Browse the repository at this point in the history
Reduce export chunksize to 1mb
  • Loading branch information
dpetrick authored Mar 23, 2018
2 parents 90a874d + 3cc4213 commit 931801f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ trait ApiDependencies extends AwaitUtils {
lazy val graphQlRequestHandler: GraphQlRequestHandler = GraphQlRequestHandlerImpl(println)
lazy val auth: Auth = AuthImpl
lazy val requestHandler: RequestHandler = RequestHandler(projectFetcher, apiSchemaBuilder, graphQlRequestHandler, auth, println)
lazy val maxImportExportSize: Int = 10000000
lazy val maxImportExportSize: Int = 1000000

val sssEventsPubSub: PubSub[String]
lazy val sssEventsPublisher: PubSubPublisher[String] = sssEventsPubSub
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class BulkExport(project: Project)(implicit apiDependencies: ApiDependencies) {

private def serializeDataItems(in: JsonBundle, dataItems: Seq[JsValue], info: ExportInfo): ResultFormat = {
val combinedElements = in.jsonElements ++ dataItems
val combinedSize = in.size + dataItems.map(_.toString.size).sum
val combinedSize = in.size + dataItems.map(_.toString.length).sum
val out = JsonBundle(combinedElements, combinedSize)
val numberSerialized = dataItems.length

Expand Down

0 comments on commit 931801f

Please sign in to comment.