You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid the case of long executing INSERTs, where the spent time is more than max_duration in the following code:
letmut inserter = client.inserter("kek").set_max_duration(Duration::from_millis(5));whileletSome(envelope) = ctx.recv().await{let row = make_row(envelope);
inserter.write(row).await;// if time is exceeded,// ends the current HTTP request and open another one.
inserter.commit().await;}
The simplest possible solution is just to skip ticks.
The text was updated successfully, but these errors were encountered:
Avoid the case of long executing
INSERT
s, where the spent time is more thanmax_duration
in the following code:The simplest possible solution is just to skip ticks.
The text was updated successfully, but these errors were encountered: