php-general Digest 5 Dec 2012 16:19:15 - Issue 8055
Topics (messages 319781 through 319803):
Re: shared memory on php servers?
319781 by: rene7705
319782 by: Sebastian Krebs
319783 by: Stuart Dallas
319784 by: Sebastian Krebs
319785 by: Alessandro Pellizzari
how to read emails with php
319786 by: Farzan Dalaee
319788 by: Daniel Brown
319789 by: Farzan Dalaee
319790 by: Jonathan Sundquist
319792 by: Farzan Dalaee
319794 by: Jonathan Sundquist
319795 by: Farzan Dalaee
319796 by: Jonathan Sundquist
319797 by: Daniel Brown
319798 by: Farzan Dalaee
319801 by: Jim Lucas
Re: building an improved service log
319787 by: Inigo Medina
Can't use the SNMP class
319791 by: Marc-Andre Bergeron
319793 by: Stuart Dallas
PHP site search broken?
319799 by: Paul M Foster
319800 by: Sebastian Krebs
319802 by: Jim Lucas
319803 by: Daniel Brown
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
--
---BeginMessage---
I would also like to hear any thoughts on how to efficiently add,
delete and edit data in this large and deep array structure from
multiple sessions at nearly the same time..
On Tue, Dec 4, 2012 at 11:49 AM, rene7705 rene7...@gmail.com wrote:
Hi folks..
I'm wondering, what's the fastest way to put a large and deep array()
structure in shared memory on a PHP server?
---End Message---
---BeginMessage---
Hi,
Why don't you use a database? Seems more appropiate here. At least SQLite
should fit ;)
Regards,
Sebastian
2012/12/4 rene7705 rene7...@gmail.com
I would also like to hear any thoughts on how to efficiently add,
delete and edit data in this large and deep array structure from
multiple sessions at nearly the same time..
On Tue, Dec 4, 2012 at 11:49 AM, rene7705 rene7...@gmail.com wrote:
Hi folks..
I'm wondering, what's the fastest way to put a large and deep array()
structure in shared memory on a PHP server?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
github.com/KingCrunch
---End Message---
---BeginMessage---
On 4 Dec 2012, at 10:51, rene7705 rene7...@gmail.com wrote:
I would also like to hear any thoughts on how to efficiently add,
delete and edit data in this large and deep array structure from
multiple sessions at nearly the same time..
On Tue, Dec 4, 2012 at 11:49 AM, rene7705 rene7...@gmail.com wrote:
Hi folks..
I'm wondering, what's the fastest way to put a large and deep array()
structure in shared memory on a PHP server?
Split the data up into smaller pieces. There's rarely a valid reason to store a
huge array of data as a single blob. It's an array, so it breaks up by the
first level of keys at the very least.
Look at APC, memcached, and redis. These are the most popular ways to store
data in shared memory. Note that APC is a PHP extension so you can only access
the shared memory from one machine, whereas memcached and redis are separate
daemons so you can access them from multiple servers.
Also, as Sebastian says, a database is another option unless you have a good
reason to want the data in shared memory rather than a DB.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/---End Message---
---BeginMessage---
2012/12/4 Stuart Dallas stu...@3ft9.com
On 4 Dec 2012, at 10:51, rene7705 rene7...@gmail.com wrote:
I would also like to hear any thoughts on how to efficiently add,
delete and edit data in this large and deep array structure from
multiple sessions at nearly the same time..
On Tue, Dec 4, 2012 at 11:49 AM, rene7705 rene7...@gmail.com wrote:
Hi folks..
I'm wondering, what's the fastest way to put a large and deep array()
structure in shared memory on a PHP server?
Split the data up into smaller pieces. There's rarely a valid reason to
store a huge array of data as a single blob. It's an array, so it breaks up
by the first level of keys at the very least.
Look at APC, memcached, and redis. These are the most popular ways to
store data in shared memory. Note that APC is a PHP extension so you can
only access the shared memory from one machine, whereas memcached and redis
are separate daemons so you can access them from multiple servers.
Also, as Sebastian says, a database is another option unless you have a
good reason to want the data in shared memory rather than a DB.
Beside that you can have Databases in memory too, like SQLite on a
tmpfs-mount, or a specialized memory-persistent database engine :)
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List