) = mailboxSize.toLong
val coll = staticColl
val dbo = (
_msg - blah blah blah
_event - blah blah blah
_user - blah blah blah
_name - Lincoln
)
coll.save(dbo)
timer.split(save)
coll.findOne(_name - Lincoln)
timer.split(findOne)
val res = coll.find().limit(1000).toArray
timer.split(findAll
Thanks David, I will give Lift Actors a try. Mongodb is supposedly
using a connection pool behind the scenes so it isn't supposed to
matter whether I create 1 or many connection objects, but I will check
the source as I'm not 100% sure.
Thanks,
Lincoln
On Thu, Nov 12, 2009 at 8:05 PM, David
requests but that is just a guess.
Thanks,
Lincoln
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email
, but the mailbox never grows past a size of 1 or
2. I will try and send along a simplified version of my code to
illustrate what I'm doing.
Thanks,
Lincoln
On Sun, Nov 8, 2009 at 11:02 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
If you have all your requests going to 1 actor, then you've
constructor parameter, a reference to the outer
class (same way as in Java). You need to move those case classes away
from enclosing class (to an object or package etc.).
The error message is very bad in this case. I will fix it.
Cheers Joni
On Oct 1, 7:49 am, Lincoln linxbet...@gmail.com wrote:
Hi
, last: String)
case class User(name: Name, email: String)
import net.liftweb.json.JsonParser._
val u = {
import JsonDSL._
(name -
(first - Lincoln) ~
(last - Hochberg)
) ~
(email - linxbet...@gmail.com)
}
val json = JsonDSL.pretty(JsonAST.render(u))
val jsonAST = JsonParser.parse(json)
val user
JNothing,
json='JField(name,JObject(List(JField(first,JString(Lincoln)), JField
(last,JString(Hochberg)', path='wtf'
at net.liftweb.json.Extraction$.net$liftweb$json$Extraction$
$fail(Extraction.scala:151)
at net.liftweb.json.Extraction$.fieldValue$1(Extraction.scala:
106
Got it. Thanks for the info. I was afraid I was doing something wrong.
Thanks,
Lincoln
On Sun, Sep 13, 2009 at 9:48 AM, Joni Freeman freeman.j...@gmail.comwrote:
Hi,
Your example should work if you take the val away from your case
class:
case class MyName(first:String, last:String
This looks like the thread:
http://www.nabble.com/-scala--Google-App-Engine-for-Scala%21-td22944265.html
Linc.
On 08/04/2009, at 4:53 PM, Timothy Perrett wrote:
Can you fwd to the lift list for those of us not on the main scala
mailing lists?
Thanks, Tim
On Apr 8, 3:14 pm, David Pollak