Sessions and threading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

I am attempting to write an implementation of Prevayler (http://sourceforge,net/projects/prevayler), which has originally been written for Java and provides a prevalance layer for storing objects using incremental log files and taking snapshots of in fixed time intervals.

It seems the Java guys are widely using the implementation even for web applications. There are many advantages to using the system, backups and restores are very easy and reliable and it is very efficient for small sized projects, as the Prevayler guys claim about 9000 times faster than Oracle ;-)

I have near worked out everything that has to be done, I think I am going to try and write it as a PEAR module for it to be available to everyone. I am stuck with a few concepts and I thought I might float the ideas here to get some feedback before I start scripting.

The first part of the problem is that I need to be able to at all times maintain a readable set of objects in memory, I am planning to achieve that using session variables, but I hear that session variables can become very inefficient, how true is that?

The other issue is running a thread that enable in some time interval to write snapshots from the log files that are being generated. Is it possible to have part of the script alive in some sort of a thread even after the script is dead. For example with the use of the sesssion variable.

Any feedback is very welcome.

Kind regards,
Devraj

--
----------------------------------------------------------------------
Devraj Mukherjee, Eternity Technologies Pty. Ltd. Australia
Host: Debian (Sarge) 3.1 Kernel 2.4.27-1-686 / GCC version 3.3.5
Target: LPD7A400 (ARM9) LogicPD eval. board / ARM GCC 3.3 GlibC 2.3.2
LAMP environment specs. Apache: 2.0.52 PHP: 5 MySQL: 4.0.21
----------------------------------------------------------------------

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux