From d71d3f4326d07ef6ccb074b60ee7adaadadcb637 Mon Sep 17 00:00:00 2001 From: tr4b4nt Date: Tue, 2 Jul 2019 16:47:00 +0200 Subject: Replace replica with primary in automatic connection switching after write in multi-db docs [ci skip] Reads after write should be from the primary database. --- guides/source/active_record_multiple_databases.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/active_record_multiple_databases.md b/guides/source/active_record_multiple_databases.md index d7d9bd1ca9..07be21a254 100644 --- a/guides/source/active_record_multiple_databases.md +++ b/guides/source/active_record_multiple_databases.md @@ -180,7 +180,7 @@ to primary based on the HTTP verb and whether there was a recent write. If the application is receiving a POST, PUT, DELETE, or PATCH request the application will automatically write to the primary. For the specified time after the write the application -will read from the replica. For a GET or HEAD request the application will read from the +will read from the primary. For a GET or HEAD request the application will read from the replica unless there was a recent write. To activate the automatic connection switching middleware, add or uncomment the following -- cgit v1.2.3