Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Upgrade to gizzard 3.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Raghavendra Prabhu committed Mar 23, 2012
1 parent 6c69a91 commit e6c258f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions config/development.scala
Expand Up @@ -18,10 +18,10 @@ trait Credentials extends Connection {
} }


class ProductionQueryEvaluator extends AsyncQueryEvaluator { class ProductionQueryEvaluator extends AsyncQueryEvaluator {
workPoolSize = Some(40) workPoolSize = 40
database.memoize = true database.memoize = true
database.pool = new ThrottledPoolingDatabase { database.pool = new ThrottledPoolingDatabase {
size = workPoolSize.get size = workPoolSize
openTimeout = 100.millis openTimeout = 100.millis
} }


Expand Down Expand Up @@ -73,9 +73,9 @@ new FlockDB {
val lowLatencyQueryEvaluator = edgesQueryEvaluator val lowLatencyQueryEvaluator = edgesQueryEvaluator


val materializingQueryEvaluator = new ProductionQueryEvaluator { val materializingQueryEvaluator = new ProductionQueryEvaluator {
workPoolSize = Some(1) workPoolSize = 1
database.pool = new ThrottledPoolingDatabase { database.pool = new ThrottledPoolingDatabase {
size = workPoolSize.get size = workPoolSize
openTimeout = 1.second openTimeout = 1.second
} }
} }
Expand Down
8 changes: 4 additions & 4 deletions config/production.scala
Expand Up @@ -16,10 +16,10 @@ trait Credentials extends Connection {
} }


class ProductionQueryEvaluator extends AsyncQueryEvaluator { class ProductionQueryEvaluator extends AsyncQueryEvaluator {
workPoolSize = Some(40) workPoolSize = 40
database.memoize = true database.memoize = true
database.pool = new ThrottledPoolingDatabase { database.pool = new ThrottledPoolingDatabase {
size = workPoolSize.get size = workPoolSize
openTimeout = 100.millis openTimeout = 100.millis
} }


Expand Down Expand Up @@ -73,9 +73,9 @@ new FlockDB {
val lowLatencyQueryEvaluator = new ProductionQueryEvaluator val lowLatencyQueryEvaluator = new ProductionQueryEvaluator


val materializingQueryEvaluator = new ProductionQueryEvaluator { val materializingQueryEvaluator = new ProductionQueryEvaluator {
workPoolSize = Some(1) workPoolSize = 1
database.pool = new ThrottledPoolingDatabase { database.pool = new ThrottledPoolingDatabase {
size = workPoolSize.get size = workPoolSize
openTimeout = 1.second openTimeout = 1.second
} }
} }
Expand Down
4 changes: 2 additions & 2 deletions config/test.scala
Expand Up @@ -24,11 +24,11 @@ trait Credentials extends Connection {


class TestQueryEvaluator(label: String) extends AsyncQueryEvaluator { class TestQueryEvaluator(label: String) extends AsyncQueryEvaluator {
query.debug = { s => Logger.get("query").debug(s) } query.debug = { s => Logger.get("query").debug(s) }
workPoolSize = Some(2) workPoolSize = 2
singletonFactory = true singletonFactory = true
database.memoize = true database.memoize = true
database.pool = new ThrottledPoolingDatabase { database.pool = new ThrottledPoolingDatabase {
size = workPoolSize.get size = workPoolSize
openTimeout = 5.seconds openTimeout = 5.seconds
} }


Expand Down
2 changes: 1 addition & 1 deletion project/build/FlockDBProject.scala
Expand Up @@ -10,7 +10,7 @@ with SubversionPublisher {
override def filterScalaJars = false override def filterScalaJars = false
val scalaTools = "org.scala-lang" % "scala-compiler" % "2.8.1" val scalaTools = "org.scala-lang" % "scala-compiler" % "2.8.1"


val gizzard = "com.twitter" % "gizzard" % "3.0.8-SNAPSHOT" withSources() val gizzard = "com.twitter" % "gizzard" % "3.0.8" withSources()
val scrooge = "com.twitter" % "scrooge-runtime" % "1.0.3" withSources() val scrooge = "com.twitter" % "scrooge-runtime" % "1.0.3" withSources()


val asm = "asm" % "asm" % "1.5.3" % "test" val asm = "asm" % "asm" % "1.5.3" % "test"
Expand Down

0 comments on commit e6c258f

Please sign in to comment.