private SessionConnection getSessionConnection(IDeviceID deviceId) {
    TEndPoint endPoint;
    if (enableRedirection
        && tableModelDeviceIdToEndpoint != null
        && (endPoint = tableModelDeviceIdToEndpoint.get(deviceId)) != null
        && endPointToSessionConnection.containsKey(endPoint)) {
      return endPointToSessionConnection.get(endPoint);
    } else {
      return defaultSessionConnection;
    }
  }
insert data in one row, if you want to improve your performance, please use insertRecords
method or insertTablet method

@see Session#insertRecords(List, List, List, List, List)
@see Session#insertTablet(Tablet)
iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java