unable to write records to timestream

0

Hello, I wrote a python code that pushes cryptocurrency prices into AWS TimeStream. It was working fine until 20 seconds later where i am getting an error:

'dimension name and value exceeds the maximum supported length for dimension names and values? See quotas in timestream developer guide for additional information.

I am storing an entire orderbook for each timestamped record. They look like this:

symbol | ask_size ||. best_ask_timestamp || bid_size || asks. || best_bid_timestamp || time || bids || measure_value:varchar

Those are my field names

'BTCUSD' || 0.603747 || 1649961447.49376 || 0.59564627 || [[164996, 398741, 1628566, ...]

So literally the value for asks is a list of list that i am storing as a plain text. Is this now allowed? My goal is that when i query per timestamp, i will get a record showing the entire orderbook and best asks and bids etc.

so in summary, my asks and bids are both a length of about 20 records. i.e asks = [[2, 3, 4, 5, 55667, ..., 20]] same with bids.

Right now, when i am running my program, i am getting an error after 2 minutes:

An error occurred (ValidationException) when calling the WriteRecords operation: The dimension name and value exceeds the maximum supported length for dimension names and values. See Quotas in the Timestream developer guide for additional information.

asked 2 years ago121 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions