CI 3 using native sessions instead of driver |
(12-12-2019, 08:35 AM)blasto333 Wrote: phpredis extension has much finer grain control with locking; so it should perform just as good as mysql GET_LOCK without database load. You can do the following. (microseconds instead of 1 second). Do you understand that CI 3 uses "native" sessions? Do you realize the main purpose of the CI_Session library is to provide database drivers? PHP does not have any built-in ability to use databases. To do that it is necessary to write a custom session handler, i.e. the CI_Session class and its associated drivers. You cannot solve the locking issue by removing the locks. (Well, you can, but it would be bad practice.) It's not clear to me that's what you have in mind, but if it is read this. If you have read that before then read it again more carefully. |
Messages In This Thread |
CI 3 using native sessions instead of driver - by blasto333 - 12-11-2019, 07:39 PM
RE: CI 3 using native sessions instead of driver - by dave friend - 12-12-2019, 08:32 AM
RE: CI 3 using native sessions instead of driver - by blasto333 - 12-12-2019, 08:35 AM
RE: CI 3 using native sessions instead of driver - by dave friend - 12-12-2019, 09:00 AM
RE: CI 3 using native sessions instead of driver - by blasto333 - 12-12-2019, 09:02 AM
RE: CI 3 using native sessions instead of driver - by dave friend - 12-14-2019, 09:46 AM
RE: CI 3 using native sessions instead of driver - by blasto333 - 12-14-2019, 10:03 AM
|