splix commented on PR #530:
URL: https://github.com/apache/avro-rs/pull/530#issuecomment-4526995398

   > AFAIU you need to read the Avro data once to collect the offsets to be 
able to seek later, right ?
   So, this helps for the following reads ?
   
   Right. 
   
   First time I needed that was when we had a separate index with records, so 
we were just opening the Avro file at a needed position. Very large files 
(audit and traces) and small index for positions. That was in Java, where 
seeking is supported.
   
   Now I need to show an Avro file on screen, using Rust. User can scroll the 
file back and forth. One option is keeping the whole file in memory, which is 
not optimal considering the usual sizes, or just keep the list of positions in 
file. The file opens from the start, so I always have all the previous 
positions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to