https://github.com/bcsabaengine/prisma-test
Prisma RSS usage test
https://github.com/bcsabaengine/prisma-test
Last synced: about 1 year ago
JSON representation
Prisma RSS usage test
- Host: GitHub
- URL: https://github.com/bcsabaengine/prisma-test
- Owner: BCsabaEngine
- Created: 2023-08-26T18:26:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T12:11:41.000Z (almost 2 years ago)
- Last Synced: 2025-02-14T06:47:22.814Z (over 1 year ago)
- Language: TypeScript
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prisma RSS usage
```
git clone https://github.com/BCsabaEngine/prisma-test
npm i
npm run seed:1m
npm run dev
```
retrieves 1m rows and concat data to one string that 25Mb only
displays RSS usage:
```
Start RSS: 213 Mb
Extract finished - 1000000 rows
Concat - 25 Mb
End RSS: 2085 Mb
```
when use PG native query (commented out in source code)
```
Start RSS: 213 Mb
Extract finished - 1000000 rows
Concat - 25 Mb
End RSS: 474 Mb
```