AbsaOSS / AbsaOSS/fa-db

Fetching database records with streaming approach

未關閉
#107 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Scala
星號
2
分支
0
平均合併
3 天 18 小時
30 天內合併 PR
3

描述

## Background
At the moment if we're fetching a large number of records from a database without using streaming, we can potentially run into an OutOfMemoryError. This is because all the records are loaded into memory at once.

## Feature
Streaming, on the other hand, loads data in chunks, keeping only a portion of the data in memory at any given time. This is more memory-efficient and can handle large datasets that would not fit into memory all at once.

Both Doobie and Slick support streaming. Moreover streaming integration with ZIO is possible. It would be great to explore the space and find out if/how we could introduce streaming capabilities into this library.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。