We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2875709 commit 1a5677bCopy full SHA for 1a5677b
README.md
@@ -909,10 +909,18 @@ end
909
You can temporarily disable auto-indexing using the without_auto_index scope:
910
911
```ruby
912
+# disable Book's auto-indexing
913
Book.without_auto_index do
914
# Inside this block, auto indexing task will not run.
915
1.upto(10000) { Book.create! attributes }
916
end
917
+
918
+# disable all auto-indexing
919
+Meilisearch::Rails.without_auto_index do
920
+ # Inside this block, auto indexing task will not run.
921
+ 1.upto(10000) { Book.create! attributes }
922
+ 1.upto(10000) { User.create! user_attributes }
923
+end
924
```
925
926
## ⚙️ Development workflow & contributing
0 commit comments