M
M
Magir2011-03-02 00:07:57
PHP
Magir, 2011-03-02 00:07:57

PHP + DB4

For one high-load project, a DB4 PHP module is used to store all the data. PHP version 5.2.3.
There are constant problems of "breakage" of the database files, when it becomes impossible to write something to it, you have to recreate the database file and overwrite data in it.
There are also other problems - for example, the module does not implement file locking when writing, so sometimes there are situations with data loss.
It is necessary to change the database, but I did not find suitable options. I tried to switch to MongoDB, but there are two problems - the inability to use dots in the key and the inability to write text in non-utf encoding. Tokyo tyrant was also studied, but its structure does not fit, a tree structure is needed, or at least a DB Container like in MongoDB.
Found mention of BDB 5 starting with PHP 5.3.3. But I did not find information about what kind of animal it is and whether DB4 problems are solved in it.
What do you advise?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexeyK, 2011-03-23
@AlexeyK

Download php 5.3.3 sorts and see for yourself, you can still contact the developer of the original extension with a problem.
I didn’t work very closely with DB4, but what’s the problem with adding a blocker to it and some kind of daemon for queuing?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question