Skip to content

Commit ad3ce1b

Browse files
authored
docs: refine for live update (#507)
1 parent 3f12262 commit ad3ce1b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/docs/core/flow_def.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ def demo_flow(flow_builder: cocoindex.FlowBuilder, data_scope: cocoindex.DataSco
146146

147147
:::info
148148

149-
In live update mode, for each refresh, CocoIndex will traverse the data source to figure out the changes,
149+
In live update mode, for each refresh, CocoIndex will list rows in the data source to figure out the changes based on metadata such as last modified time,
150150
and only perform transformations on changed source keys.
151+
If nothing changed during the last refresh cycle, only list operations will be performed, which is usually cheap for most data sources.
151152

152153
:::
153154

docs/docs/core/flow_methods.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ A data source may enable one or multiple *change capture mechanisms*:
105105
* Configured with a [refresh interval](flow_def#refresh-interval), which is generally applicable to all data sources.
106106

107107
* Specific data sources also provide their specific change capture mechanisms.
108-
For example, [`GoogleDrive` source](../ops/sources#googledrive) allows polling recent modified files.
108+
For example, [`AmazonS3` source](../ops/sources/#amazons3) watches S3 bucket's change events, and [`GoogleDrive` source](../ops/sources#googledrive) allows polling recent modified files.
109109
See documentations for specific data sources.
110110

111111
Change capture mechanisms enable CocoIndex to continuously capture changes from the source data and update the target data accordingly, under live update mode.

0 commit comments

Comments
 (0)