Hello, I have "strange question" is it possible to run ESOPO CRM in few DB, I mean CRM in one DB, but mail in another DB. Now we have a big scoupe of e-mails and any query in mail are freezing all the system. So my idea is to transfer mail storage to separate DB. Has anyone such experience, ideas how to do so or can help us for additional fee.
One CRM in few DB
Collapse
X
-
As an option, delete all emails with an empty parent field.If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.Comment
-
There are no so many emails with no parent field, most of them it's related to some account/contact or support issue. Cleanup of unrelated emails didn't change volume of email DB dramatically, even if we cleanup all emails older than 5 years by default.Comment
-
Hi,
Recently I had to delete emails all manually because the cleanup job timed out.
I deleted about 35000 mails. At least the job is working again. Outsourcing the mails, e.g. to the upload folder, would certainly not be a bad solution. Web space is usually not the problem, but rather the size of the database.Comment
-
For example, the software would only be able to do JOINS if the two databases are located on the same server and use the same connection (i.e. with the same database user credentials). This is a little-known feature of MySQL.
But, if the databases do not use the same connection, you can't use JOINS anymore when querying tables in different databases. While you could still get the data by using separate queries to each database, it makes it harder to sort results, since you can't use a JOIN. Maybe with some creativity, it can be done, but such a design forces you to rethink how you interact with the data.
Another possible solution would be to only store the meta information in the CRM database, and that points to the body of the email stored elsewhere, perhaps in another database or a file. The downside to this is you wind up using more disk space since you are storing the meta information twice, and it makes it difficult to search the body of the emails and cross reference that with other data in the CRM at the same time, again, because for the JOIN issue.
I'm not speaking for the developer, but I will note that it is technically possible but would probably require significant rewriting of the code.Comment
Comment