Closed delafred closed 8 months ago
Thank you for your feature request, I will look into it.
Note that PHP has a share-nothing architecture, so on normal webservers it should not affect other threads. This is only a problem if you have a long running PHP application that manages its own threads. Is that the case?
This is only a problem if you have a long running PHP application that manages its own threads. Is that the case?
No I'm not in this case, I was more thinking to use pthreads and reuse of instance of rb. Note that I'm not an expert in PHP
Thanks to have a look on ths functionnality.
pthreads seems abandoned? https://www.php.net/manual/en/intro.pthreads.php You can maybe use https://www.php.net/manual/en/book.parallel.php. RedBeanPHP and many aspects of PHP itself are not thread safe though.
pthreads seems abandoned? https://www.php.net/manual/en/intro.pthreads.php You can maybe use https://www.php.net/manual/en/book.parallel.php. RedBeanPHP and many aspects of PHP itself are not thread safe though.
Thanks for the information, I'll have a look.
I'm currently looking how to optimize my code. Using redbean I didn't notice that by default all fields are updated.
The method R::usePartialBeans(); can help me on that, I also noticed I can apply an array of beans.
I think it could be easier, safer and more visible
R::store($bean, $option);
that can force this parameter and/orR::storePartialBean($bean);
/R::storeOnlyModified($bean);
/R::storePartial($bean);
/R::storeDirty($bean);
I explain
thx for this library that helped me a lot