Files
webstudio/packages/project-build/package.json
T
Ivan Starkov 231c792ebf experimental: Enhance Performance by Using Postgrest to Fetch Data from Build Table (#3758)
## Description

[Big Project
Example](https://postgrest.development.webstudio.is/builder/be939bf2-9095-4e17-b175-69de2bbf9597)

Reduces time of big projects loading:

✓ { scenario:new_o }...........: avg=2.58s min=1.99s med=2.54s max=3.53s
p(90)=2.95s p(95)=3.15s p(99)=3.44s count=31
✓ { scenario:old_o }...........: avg=5.5s min=4.55s med=5.12s max=15.58s
p(90)=5.44s p(95)=6.02s p(99)=12.87s count=31

2 times faster. (but highly depends on test times, project size etc
sometimes it's 6x difference)

Reduces patch time too.

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2024-07-20 18:34:36 +03:00

40 lines
1.0 KiB
JSON

{
"name": "@webstudio-is/project-build",
"version": "0.0.0",
"description": "Webstudio Project Build",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
"license": "AGPL-3.0-or-later",
"private": true,
"type": "module",
"exports": {
".": {
"webstudio": "./src/index.ts"
},
"./index.server": {
"webstudio": "./src/index.server.ts"
}
},
"sideEffects": false,
"scripts": {
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"dependencies": {
"@webstudio-is/prisma-client": "workspace:*",
"@webstudio-is/sdk": "workspace:*",
"@webstudio-is/trpc-interface": "workspace:*",
"@webstudio-is/postrest": "workspace:*",
"nanoid": "^5.0.1",
"zod": "^3.22.4"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@webstudio-is/http-client": "workspace:*",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"type-fest": "^4.3.1",
"typescript": "5.5.2"
}
}