Index + Limit #2668
-
Hey everyone, Looking to see if it is either currently possible or a possibility in the future to have a table that uses both index & limit together. I know currently I could guesstimate my number of securities I would have and then make my limit be 86400 * expected securities but say I only update when the top of book changes some very liquid securities could could drown out less liquid securities as the table reaches the limit. Is this approach not recommended compared to a more structured fixed number of securities and everything gets the same number of updates. Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
From the docs on this feature:
Even if they could be, it would not work as you describe - There is a
|
Beta Was this translation helpful? Give feedback.
From the docs on this feature:
Even if they could be, it would not work as you describe -
index
is a primary key and adding a limit on top would just limit the number of unique primary keys the set could contain, it would not just allowTable
to store duplicate indices.There is a
remove()
method for selecting indices to clear, but you'd need to first query and/or track them yourself. Instead, you may try implementing a periodic (daily or whatever) try using aView
+ filter to move just the recent records, something like: