Magic Data Storage Mechanisms: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 1: Line 1:
Los datos magic proporcionan un mecanismo central para configurar iHRIS.  Estos datos magic se almacenan en una tabla de una base de datos. Debido al frecuente accesso a los datos, necesitamos un mecanismo de caché para mantener la carga de la base de datos bajo control. Por esta razón, se han creado varios mecanismos de almacenamiento de datos magic.
Magic data provides a central mechanism for configuring iHRIS.  This magic data is stored in a database table. Due to frequent access of the data, we need a caching mechanism keep the database load down. For this reason, several magic data storage mechanisms have been created.


Usted puede agregar mecanismos de almacenamiento de bases de datos a I2CE_MagicData.  El último que se agrega es el método "permanente" de almacenamiento. Todos los demas que se agregan se utilizan para realizar caché a los datos almacenados en el mecanismo permanente de almacenamiento.
You can add database storage mechanisms to I2CE_MagicData.  The last one that is added is the "permanent" storage mechanism methods. All others that are added are used to cache the data stored in the permanent storage mechansim.


==Base de Datos==
==Database==
Este mecanismo de almacenamiento de datos magic se diseñó para utilizarse como el mecanismo "permanente" de almacenamiento. Se almacena en la table 'config' de la ase de datos por defecto.
This magic data storage mechanism is intended to be used as the "permanent" storage mechanism. By default it is stored into the database table 'config'


==APC==
==APC==
Hay un mecanismo de almacenamiento de datos magic en el módulo Pear APC e implementado por la clade I2CE_MagicDataStorageAPC.  Realiza caché de los datos en el segmento de memoria entre solicitudes con un tiempo de salida de 5 minutosLos datos en caché por Apache no reciben caché en la línea de comando.
There is magic data storage mechanism based on the Pear APC module and implemented by the class I2CE_MagicDataStorageAPC.  It caches data in the memory segment between reqeusts with a timeout of 5 minutesData cached by Apache is not cached on the command line.


Para limpiar el caché manualmente puede utilizar la interfaz de red de php-apc.
To clear the cache manually you can use php-apc web interface.


==Memcached==
==Memcached==
Este es un caché en memoria de los pares de valores clave con límites de 1MB por tamaño de valor.
This is an in-memory cache of key-value pairs with limits of 1MB for value size.


==SysV==
==SysV==
Este mecanismo de almacenamiento de datos mágicos ya no se mantiene.
This magic data storage mechanism is no longer being maintained.


Hay un mecanismo de almacenamiento de datos basado en SysV I2CE_MagicDataStorageSysV.  No está disponible en windows. Crea segmentos de memoria para realizar caché a los datos entre solicitudes. Su ventaja sobre APC es que se puede tener acceso a los mismos segmentos compartidos via la línea de commando. No hay tiempo de salida para los datos guardados.
There is magic data storage mechanism based on SysV I2CE_MagicDataStorageSysV.  It is not available in windows. It creates shared memory segments to cache the data between requests. It's advantage over APC is that the same shared segments can be accessed via the command line. There is no time-out for the data stored.


Para limpiar los segmentos de memoria compartidos manualmente desde la línea de commando
To clear manually from the command line the shared memory segments
  ipcs -m | grep www-data | awk '{print "ipcrm -m "$2}' | sudo bash
  ipcs -m | grep www-data | awk '{print "ipcrm -m "$2}' | sudo bash
[[Category:Technical Overview]][[Category:Magic Data]][[Category:Review2013]][[Category:Needs Intro]]
[[Category:Technical Overview]][[Category:Magic Data]][[Category:Review2013]][[Category:Needs Intro]]

Revision as of 21:52, 30 September 2013

Magic data provides a central mechanism for configuring iHRIS. This magic data is stored in a database table. Due to frequent access of the data, we need a caching mechanism keep the database load down. For this reason, several magic data storage mechanisms have been created.

You can add database storage mechanisms to I2CE_MagicData. The last one that is added is the "permanent" storage mechanism methods. All others that are added are used to cache the data stored in the permanent storage mechansim.

Database

This magic data storage mechanism is intended to be used as the "permanent" storage mechanism. By default it is stored into the database table 'config'

APC

There is magic data storage mechanism based on the Pear APC module and implemented by the class I2CE_MagicDataStorageAPC. It caches data in the memory segment between reqeusts with a timeout of 5 minutes. Data cached by Apache is not cached on the command line.

To clear the cache manually you can use php-apc web interface.

Memcached

This is an in-memory cache of key-value pairs with limits of 1MB for value size.

SysV

This magic data storage mechanism is no longer being maintained.

There is magic data storage mechanism based on SysV I2CE_MagicDataStorageSysV. It is not available in windows. It creates shared memory segments to cache the data between requests. It's advantage over APC is that the same shared segments can be accessed via the command line. There is no time-out for the data stored.

To clear manually from the command line the shared memory segments

ipcs -m | grep www-data | awk '{print "ipcrm -m "$2}' | sudo bash