<#C01P749MET0|> I have millions of records, is the...
# community-help
j
#C01P749MET0 I have millions of records, is there a way to return a random selection from my typesense data?
k
👋 answered a similar question here: https://github.com/typesense/typesense/issues/597
j
To keep pushing a random number on to the table would mean pushing an incrementing number to 50 records (at random) every 10mins, and then return on that descending, the volume of records doesnt matter that way.
c
you don’t need to keep updating them, just pick a random number to start at each time
j
I am not getting the highest number, my config is
'q'     : '',  'query_by' : 'title,tag,summary,vendor',  'filter_by' : 'price:[0..1000000]',  'query_by_weights' : '128,80,60,1',  'sort_by'  : '_text_matchdesc,updated intdesc',  'group_by' : 'vendor',  'group_limit' : 1,  'include_fields' : 'price, title,image,link',  'page' : 1,  'per_page' : 18,  'highlight_fields' : 'title'