> Am 08.12.2017 um 21:14 schrieb Stephane Ducasse <stepharo.s...@gmail.com>:
> 
> Yann
> I do not think that connecting a database via a HTTP client can be as
> fast as with a FFI or other means.
> This is mainly why database like Gemstone are superior for accessing a
> lot of data.
> Stef
> 
Do you have any numbers to back this? We are not talking about a local 
database. The usual deployment case is that the database is remote and 
clustered so you need to connect one or more hosts at the same time. Via FFI 
you would trigger native code that does network calls to the database. The main 
network handling part is in the SocketPlugin. So I‘m not sure how much faster 
it will be to use FFI. IIRC using FFI is still a stop-the-world action, right? 
This has some drawbacks, too. In order to get the maximum out of it you would 
need to use callbacks (do they work with uffi?) and write a lot stuff in C. And 
debugging is hell.
I think that one of the things that make gemstone fast is that the in-memory 
format is the same as the disk-format so no need to serialize/materialize. That 
is one of the high costs in using a database. And this you would still do in 
pharo, right? So I would be really interested in some numbers of a use case 
like this.

Norbert
>> On Fri, Dec 8, 2017 at 4:32 PM, Yann Lesage <yannle...@gmail.com> wrote:
>> Hello,
>> 
>> 
>> I write an driver for Arangodb . So like it's indicated in Arango
>> documentation, I use the HTTP API.  The repo is
>> https://github.com/Valtena/Pharango
>> 
>> 
>> Now, the problem : Arango using Znclient make around 1 000 requests/second.
>> 
>> 
>> And the question : Are there any recommended pratice to have the better
>> performance with ZNClient or a better way to perform lot of HTTP requests ?
>> 
>> 
>> Thanks for your attention,
>> 
>> Yann Lesage
>> 
>> 
>> 

Reply via email to