I am trying to create a deamon to denormalize my database.
I use ActiveMQ as a queue manager. I have 2 databases: relational (write + replication) and denormalized (for reading)
My question is what is the best practice for denormalizing my real DB I have some ideas:
- MySQL proxy (with lua) that reads the queue (this is possible)
- Trigger in MySQL
- Java daemon as a service that reads a queue
- Cron tab? (but I will have a big delay time
source
share