Comment Comment by gotts The cool thing about multi-database feature that's coming to Rails is setting like>config.active_record.database_selector = 2.secondsRails provides a way to make sure that at-least for first two seconds after the write operation, read requests are handled by the write instance. This assumes that your read replica will get updated within 2 seconds with the live data.How cool is that parent gotts 7 years ago
>config.active_record.database_selector = 2.seconds
Rails provides a way to make sure that at-least for first two seconds after the write operation, read requests are handled by the write instance. This assumes that your read replica will get updated within 2 seconds with the live data.
How cool is that