Originally reported at PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#262
SELECT `m`.`Id`
FROM `Blogs` AS `m`
LIMIT 1000
Here are the actual allocations by ArrayPool.Shared.Rent/Return:
bufferDataLengths: Wanted 1 Got 16
bufferedDataOffsets: Wanted 1 Got 16
bufferedPayload: Wanted 16384 Got 16384
bufferDataLengths: Wanted 1 Got 16
bufferedDataOffsets: Wanted 1 Got 16
bufferedPayload: Wanted 16384 Got 16384
bufferDataLengths: Wanted 1 Got 16
bufferedDataOffsets: Wanted 1 Got 16
bufferedPayload: Wanted 16384 Got 16384
bufferedPayload must span multiple MySQL rows, need to re-work buffering. ArrayPool.Shared.Rent/Return may be overkill here as it seems to like to allocate a power of 2, we should probably switch this to allocating the correct sized objects.
Originally reported at PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#262
Here are the actual allocations by ArrayPool.Shared.Rent/Return:
bufferedPayloadmust span multiple MySQL rows, need to re-work buffering. ArrayPool.Shared.Rent/Return may be overkill here as it seems to like to allocate a power of 2, we should probably switch this to allocating the correct sized objects.