You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am inserting close to 2 million rows into three different tables using bulk load. One of them represents 1.2 million rows with 7 columns.
I had a look to heaptrack's collected data, and it appears that into_rows produces many Vec grows :
Indeed, the helper functions all use ::new instead of ::new_with_capacity. If I initialize them with the correct size, TokenRow::push is no longer present in the report and the allocation count decreases.
The text was updated successfully, but these errors were encountered:
I am inserting close to 2 million rows into three different tables using bulk load. One of them represents 1.2 million rows with 7 columns.
I had a look to heaptrack's collected data, and it appears that into_rows produces many Vec grows :
Indeed, the helper functions all use ::new instead of ::new_with_capacity. If I initialize them with the correct size, TokenRow::push is no longer present in the report and the allocation count decreases.
The text was updated successfully, but these errors were encountered: