hi i have question about improving reindex perform...
# community-help
w
hi i have question about improving reindex performance with typesense rails gem. Currently my app has about 50k rows for 1 collection When i run collection.reindex! it’s taking too long, and it doesn’t seem to have any response from typesense after 30 mins. Will updating the batch size help? if so, how do i set batch size with the typesesnse rails gem?
k
50K rows should index within 10 seconds max. cc @Fanis Tharropoulos
f
Could you provide a dummy repository that replicates that behavior? That shouldn't happen, especially for 30mins
w
hmmm let me see if i can get the dummy repo up and follow up next week will update here
👀 1
hi, it’s ok managed to solve this issue. turns out there was a n+1 db call to populate the attributes. solving the n+1 issue improved the indexing speed
🙌 1