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
description: 'Rate and operational limits for the Glide API'
4
+
---
5
+
6
+
## Payload Limits
7
+
8
+
You should not send more than 15MB of data in a single request. If you need to work with more data, use [stashing](/api-reference/v2/stashing/introduction) to upload the data in 15MB chunks.
9
+
10
+
## Row Limits
11
+
12
+
Even when using stashing, there are limits to the number of rows you can work with in a single request. These limits are approximate and depend on the size of the rows in your dataset.
Copy file name to clipboardExpand all lines: api-reference/v2/stashing/introduction.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,9 @@ Once all data has been uploaded to the stash, the stash can then be referenced i
13
13
14
14
## When to Use Stashing
15
15
16
-
You should use stashing when:
16
+
You should use stashing when both of the following conditions are met:
17
17
18
-
* You have a large dataset that you want to upload to Glide. Anything larger than 5mb should be broken up into smaller chunks and stashed.
18
+
* You have a large dataset that you want to upload to Glide. Anything larger than [15MB](/api-reference/v2/general/limits) should be broken up into smaller chunks and stashed.
19
19
* You want to perform an atomic operation using a large dataset. For example, you may want to perform an import of data into an existing table but don't want users to see the intermediate state of the import or incremental updates while they're using their application.
Copy file name to clipboardExpand all lines: api-reference/v2/tutorials/bulk-import.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,25 +36,25 @@ You are responsible for ensuring that the stash ID is unique and stable across a
36
36
37
37
## Upload Data
38
38
39
-
Once you have a stable stash ID, you can use the [stash data endpoint](/api-reference/v2/stashing/post-stashes-serial) to upload the data in stages.
39
+
Once you have a stable stash ID, you can use the [stash data endpoint](/api-reference/v2/stashing/put-stashes-serial) to upload the data in chunks.
40
40
41
-
Upload stages can be run in parallel to speed up the upload of large dataset, just be sure to use the same stash ID across uploads to ensure the final data set is complete.
41
+
Chunks can be sent in parallel to speed up the upload of large datasets. Use the same stash ID across uploads to ensure the final data set is complete, and use the serial to control the order of the chunks within the stash.
42
42
43
-
As an example, the following [stash](/api-reference/v2/stashing/post-stashes-serial) requests will create a final dataset consisting of the two rows identified by the stash ID `20240501-import`.
43
+
As an example, the following [stash](/api-reference/v2/stashing/put-stashes-serial) requests will create a final dataset consisting of the two rows identified by the stash ID `20240501-import`. The trailing parameters of `1` and `2` in the request path are the serial IDs. The data in serial `1` will come first in the stash, and the data in serial `2` will come second, even if the requests are processed in a different order.
44
44
45
45
<Tabs>
46
-
<Tabtitle="POST /stashes/20240501-import/1">
46
+
<Tabtitle="PUT /stashes/20240501-import/1">
47
47
```json
48
48
[
49
49
{
50
50
"Name": "Alex",
51
51
"Age": 30,
52
52
"Birthday": "2024-07-03T10:24:08.285Z"
53
-
}
53
+
},
54
54
]
55
55
```
56
56
</Tab>
57
-
<Tabtitle="POST /stashes/20240501-import/2">
57
+
<Tabtitle="PUT /stashes/20240501-import/2">
58
58
```json
59
59
[
60
60
{
@@ -67,7 +67,7 @@ As an example, the following [stash](/api-reference/v2/stashing/post-stashes-ser
67
67
</Tab>
68
68
</Tabs>
69
69
70
-
<Note>The trailing parameters of `1` and `2` in the request path are the serial IDs, which distinguish and order the two uploads within the stash.</Note>
70
+
<Note>The above is just an example. In practice, you should include more than one row per stash chunk, and if your complete dataset is only 2 rows, you do not need to use stashing at all. See [Limits](/api-reference/v2/general/limits) for guidance.</Note>
0 commit comments