Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 44904 invoked from network); 2 Jan 2006 20:42:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jan 2006 20:42:39 -0000 Received: (qmail 71665 invoked by uid 500); 2 Jan 2006 20:42:38 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 71436 invoked by uid 500); 2 Jan 2006 20:42:37 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 71425 invoked by uid 99); 2 Jan 2006 20:42:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jan 2006 12:42:37 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_ILLEGAL_IP,RCVD_IN_WHOIS_BOGONS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.140.2.71] (HELO aa004msg.fastwebnet.it) (213.140.2.71) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jan 2006 12:42:35 -0800 Received: from ms004msg.fastwebnet.it (10.31.40.142) by aa004msg.fastwebnet.it (7.2.069.1) id 43B7B41A0005FC9C for dev@directory.apache.org; Mon, 2 Jan 2006 21:42:14 +0100 Received: from [1.94.30.75] (1.94.30.75) by ms004msg.fastwebnet.it (7.2.069.3) id 438F2D7A01235BB8 for dev@directory.apache.org; Mon, 2 Jan 2006 21:42:14 +0100 Message-ID: <43B99026.8000405@eurone.it> Date: Mon, 02 Jan 2006 21:42:14 +0100 From: Alessandro Torrisi User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [MINA] Short or long messages for IoSession method write(...) ? References: <200601021659.58003.alessandro.torrisi@eurone.it> <30920.213.3.15.180.1136231671.squirrel@mail.shinypixel.ch> In-Reply-To: <30920.213.3.15.180.1136231671.squirrel@mail.shinypixel.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N About this: i would definately send the userlist grouped in one message. i guess your typical user-data is max. 50 bytes, so the list would be below 500k with 10000 users. Do you mean a message for each session ? Or is there some method I don't know to group all the messages for all sessions and to delegate the work to a low level of mina ? And then iBatis is surely more performant than hibernate ? I'm trying with HSQL now...I hope...bye ;-) Best regards, Alex Kaspar L�thi wrote: >hi allesandro > >Alessandro Torrisi wrote: > > >>Niklas told me to avoid every blocking situation. My app is based on a mysql >>database, so he told me to use an O/R which could be Hibernate. >>I used Hibernate 3.1 and performance seems to speed up... but it is not >>sufficient ! >> >> > >just a remark concerning the database: >probably hibernate is a bit overkill for your application. > >if you don't have a complex datamodel, iBatis might be >a good choice too. http://ibatis.apache.org. > >probably you could even use another database engine. >http://hsqldb.org lets you keep databses in memory for speed. > > > > >>I have a question...For example when I write on a IoSession I write one >>message for time. I make a little example: >> >>S: $Hello NickOfTheUser| >>C: $GetNickList| >>S: $MyINFO $ALL someuser info....| >>S: $MyINFO $ALL someuser info....| >> >> > >i would definately send the userlist grouped in one message. i guess your >typical user-data is max. 50 bytes, so the list would be below 500k with 10000 >users. > >kaspar > > >