@otwdesign/plugin-db 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/package.json +3 -3
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -12,4 +12,21 @@ Add it to `cms.config.json`'s `plugins`. Administrators get Database in the admi
|
|
|
12
12
|
other databases come from `DB_ADMIN_<NAME>_URL`. On an embedded database (PGlite), a heavy statement
|
|
13
13
|
holds the whole site until it finishes, and the screen says so.
|
|
14
14
|
|
|
15
|
+
## What it costs a site
|
|
16
|
+
|
|
17
|
+
Measured on a site built from npm with OTW CMS 1.11, once without the plugin and once with it:
|
|
18
|
+
|
|
19
|
+
| Where | Without the plugin | With it, active | The difference |
|
|
20
|
+
| --------------------------- | ------------------ | --------------- | ---------------------------------------- |
|
|
21
|
+
| Browser files of the build | 1,069,242 B | 1,069,242 B | None: the same files |
|
|
22
|
+
| A site page (HTML) | 11,579 B | 11,579 B | None |
|
|
23
|
+
| The sign-in pages (HTML) | 16,466 B | 16,466 B | None |
|
|
24
|
+
| Another admin screen (HTML) | 35,100 B | 35,682 B | The menu entry, 0.1 KB compressed |
|
|
25
|
+
| Time per request | 3.1 to 5.3 ms | 3.1 to 5.3 ms | Within 0.1 ms either way: not measurable |
|
|
26
|
+
| The server's memory, unused | 47.9 MB | 48.4 MB | 0.5 MB |
|
|
27
|
+
|
|
28
|
+
The Database screen itself downloads 104 KB the first time (the app's script and stylesheet,
|
|
29
|
+
compressed) and the SQL editor's 131 KB when the first editor opens; browsers keep both a year. The
|
|
30
|
+
server loads the tool on the first request to it, and holds about 4 MB for it from then on.
|
|
31
|
+
|
|
15
32
|
The whole guide: [github.com/OTWSRL/otw-db](https://github.com/OTWSRL/otw-db#readme).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@otwdesign/plugin-db",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "OTW DB in the OTW CMS admin: browse, query and edit the site's database, and any other, the way TablePlus does.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "OTW SRL",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@types/pg-cursor": "^2.7.2",
|
|
41
41
|
"pg": "^8.23.1",
|
|
42
42
|
"pg-cursor": "^2.22.1",
|
|
43
|
-
"@otwdesign/db-core": "1.4.
|
|
44
|
-
"@otwdesign/db-ui": "1.4.
|
|
43
|
+
"@otwdesign/db-core": "1.4.2",
|
|
44
|
+
"@otwdesign/db-ui": "1.4.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@otwdesign/sdk": "^1.1.0",
|