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
Copy file name to clipboardExpand all lines: dashjoin-docs/docs/faq.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,8 +168,7 @@ $call("openai", {
168
168
)
169
169
```
170
170
171
-
***I need to ETL from an API that has a rate limit. How can I throttle my requests?** You can use the sleep function in your JSONata expression:
172
-
Let's assume $openJson(url) is called on several array elements. Simply change it to ($openJson(x); $sleep(1000)) to introduce a 1 second delay after each call.
171
+
***I need to ETL from an API that has a rate limit. How can I throttle my requests?** You can use the wait function in your JSONata expression (server-side equivalent of sleep): Let's assume $openJson(url) is called on several array elements. Simply change it to $wait($openJson(x), 1000) to introduce a 1 second delay after each call.
173
172
174
173
***How can I realize an audit log that keeps track of all changes to a table?** You can define a triggers for create, update, and delete operations on the table that must be audited. Create an audit log table with the following columns: autoincrementing ID, user, timestamp, operation, and payload. The trigger `$create("db", "audit", {"timestamp": $now(), "user": user, "operation": "update", "payload": $})` will log changes to the table.
0 commit comments