Welcome! Log In Create A New Profile

Advanced

Re: How to use BIG data in my module?

May 06, 2011 12:46AM
On Fri, May 06, 2011 at 12:38:55PM +0800, XueHJ wrote:

> ----- Original Message -----
> From: "Piotr Sikora" <piotr.sikora@frickle.com>
> To: <nginx-devel@nginx.org>
> Sent: Thursday, May 05, 2011 8:26 PM
> Subject: Re: How to use BIG data in my module?
>
>
> > Hi,
> >
> >> in which to load into memory a BIG data (about 800MB),
> >
> > 800MB isn't really "big data" [0].
> >
> >> the processing of each HTTP request must use the data,
> For me it really is a large data, huh, huh
> >
> > Each request must use all or just parts of the data?
> Yes, just parts of the data.
> >
> >> how do I store the data? What structure to use?
> >
> > That of course depends on the data and the processing.
> > There is no general answer.
> The reason why the data is loaded into memory, hoping to respond to requests faster.
> But how to achieve it? Use ngx_shared_memory?Asked me a suggestion.

If this is read only data, you can read at at configuration phase
and they will be shared among all workers due to fork().
Also, you can just mmap() the file.


--
Igor Sysoev

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

How to use BIG data in my module?

XueHJ 1911 May 05, 2011 07:16AM

Re: How to use BIG data in my module?

Piotr Sikora 912 May 05, 2011 08:28AM

Re: How to use BIG data in my module?

XueHJ 699 May 06, 2011 12:40AM

Re: How to use BIG data in my module?

Igor Sysoev 976 May 06, 2011 12:46AM

Re: How to use BIG data in my module?

XueHJ 771 May 06, 2011 02:16AM

Re: How to use BIG data in my module?

Igor Sysoev 841 May 06, 2011 02:20AM

Re: How to use BIG data in my module?

XueHJ 858 May 07, 2011 09:04AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready