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
If the request takes too long to be processed, Cube.js Backend responds with
43
-
`{ "error": "Continue wait" }` and 200 status code.
44
-
This is how the long polling mechanism in Cube is implemented.
45
-
Clients should continuously retry the same query in a loop until they get a successful result.
46
-
Subsequent calls to the Cube endpoints are idempotent and don't lead to scheduling new database queries if not required by `refreshKey`.
47
-
Also, receiving `Continue wait` doesn't mean the database query has been canceled, and it's actually still being processed by the Cube.
48
-
Database queries that weren't started and are no longer waited by the client's long polling loop will be marked as orphaned and removed from the querying queue.
43
+
`{ "error": "Continue wait" }` and 200 status code. This is how the long polling
44
+
mechanism in Cube is implemented. Clients should continuously retry the same
45
+
query in a loop until they get a successful result. Subsequent calls to the Cube
46
+
endpoints are idempotent and don't lead to scheduling new database queries if
47
+
not required by `refreshKey`. Also, receiving `Continue wait` doesn't mean the
48
+
database query has been canceled, and it's actually still being processed by the
49
+
Cube. Database queries that weren't started and are no longer waited by the
50
+
client's long polling loop will be marked as orphaned and removed from the
51
+
querying queue.
49
52
50
53
Possible reasons of **Continue wait**:
51
54
52
55
- The query requested is heavy, and it takes some time for the database to
53
-
process it. Clients should wait for its completion, continuously sending the same REST API request.
54
-
[continueWaitTimeout](config#queue-options) can be adjusted in order to change the time Cube waits before returning `Continue wait` message.
56
+
process it. Clients should wait for its completion, continuously sending the
57
+
same REST API request. [continueWaitTimeout](config#queue-options) can be
58
+
adjusted in order to change the time Cube waits before returning
59
+
`Continue wait` message.
55
60
- There are many queries requested and Cube.js backend queues them to save
56
61
database from overloading.
57
62
@@ -76,6 +81,30 @@ should be unique for each separate request. `spanId` should define user
76
81
interaction span such us `Continue wait` retry cycle and it's value shouldn't
77
82
change during one single interaction.
78
83
84
+
### <--{"id":"Prerequisites"}-->Pagination
85
+
86
+
Cube supports paginated requests for the `/v1/load` endpoint by including
87
+
[`limit` and `offset` parameters][ref-api-ref-query-format] in the query. For
88
+
example, the following query will retrieve rows 101-200 from the `Orders` cube:
0 commit comments