Schedular optimization in real-time distributed databases door