Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion _partials/_use-case-transport-geolocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,20 @@ data by time and location.
UPDATE rides SET pickup_geom = ST_Transform(ST_SetSRID(ST_MakePoint(pickup_longitude,pickup_latitude),4326),2163),
dropoff_geom = ST_Transform(ST_SetSRID(ST_MakePoint(dropoff_longitude,dropoff_latitude),4326),2163);
```
This updates 10,906,860 rows of data on both columns, it takes a while. Coffee is your friend.
This updates 10,906,860 rows of data on both columns, it takes a while. Coffee is your friend.

You might run into this error while the update happens

`Error: tuple decompression limit exceeded by operation
Error Code: 53400
Details: current limit: 100000, tuples decompressed: 10906860
Hint: Consider increasing timescaledb.max_tuples_decompressed_per_dml_transaction or set to 0 (unlimited).`

To fix this, use

```sql
SET timescaledb.max_tuples_decompressed_per_dml_transaction TO 0;
```

</Procedure>

Expand Down