Hacker News new | ask | show | jobs
by aPoCoMiLogin 152 days ago
it's the other way around: `wait_for` waits for the next refresh (there is configurable refresh interval, 1s by default), `refresh: true` forces refresh without waiting for the next refresh interval.

the difference is that waiting for refresh assures that the data will be available for search after the "insert" finishes. forcing refresh might be foot gun that will criple the servers.

1 comments

Huh. Makes sense. Well, that’s the right option to use, anyway.