Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- platform/core/user_tables.py +13 -11
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "3bb6a04",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
3bb6a04
|
platform/core/user_tables.py
CHANGED
|
@@ -46,6 +46,7 @@ inherits C1 by construction — there is no list to add it to, which is R6's act
|
|
| 46 |
"""
|
| 47 |
import datetime as _dt
|
| 48 |
import hashlib
|
|
|
|
| 49 |
import json as _json
|
| 50 |
import math
|
| 51 |
import re
|
|
@@ -1602,19 +1603,20 @@ def get_one(table_key, st=None):
|
|
| 1602 |
|
| 1603 |
`get` deep-copies the whole tenant document to answer for one table. On a Postgres-backed
|
| 1604 |
runtime `get_entry` reads `value -> table_key` instead, so a 1,168-row stored table no longer
|
| 1605 |
-
costs a ~60-100 MB read. ⛔ A
|
| 1606 |
-
|
|
|
|
|
|
|
| 1607 |
Anything else (no capability, an absent entry, a failed read) falls back to `get` unchanged.
|
| 1608 |
"""
|
| 1609 |
-
if st is not None and not isinstance(st, _Lent)
|
| 1610 |
-
|
| 1611 |
-
|
| 1612 |
-
|
| 1613 |
-
|
| 1614 |
-
|
| 1615 |
-
|
| 1616 |
-
|
| 1617 |
-
return one
|
| 1618 |
return get(table_key, st)
|
| 1619 |
|
| 1620 |
|
|
|
|
| 46 |
"""
|
| 47 |
import datetime as _dt
|
| 48 |
import hashlib
|
| 49 |
+
import inspect
|
| 50 |
import json as _json
|
| 51 |
import math
|
| 52 |
import re
|
|
|
|
| 1603 |
|
| 1604 |
`get` deep-copies the whole tenant document to answer for one table. On a Postgres-backed
|
| 1605 |
runtime `get_entry` reads `value -> table_key` instead, so a 1,168-row stored table no longer
|
| 1606 |
+
costs a ~60-100 MB read. ⛔ ONLY A CLASS THAT DEFINES `get_entry` QUALIFIES (`getattr_static`),
|
| 1607 |
+
never one that FORWARDS it: `_Lent`, the external-API draft runtime and the other snapshot
|
| 1608 |
+
wrappers serve documents of their own and pass the rest through `__getattr__`, so a plain
|
| 1609 |
+
`getattr` would read the live store past the snapshot (or the drafted rows) they promised.
|
| 1610 |
Anything else (no capability, an absent entry, a failed read) falls back to `get` unchanged.
|
| 1611 |
"""
|
| 1612 |
+
if (st is not None and not isinstance(st, _Lent)
|
| 1613 |
+
and callable(inspect.getattr_static(type(st), 'get_entry', None))):
|
| 1614 |
+
try:
|
| 1615 |
+
one = st.get_entry(STORE_KEY, str(table_key))
|
| 1616 |
+
except Exception: # noqa: BLE001
|
| 1617 |
+
one = None
|
| 1618 |
+
if isinstance(one, dict):
|
| 1619 |
+
return one
|
|
|
|
| 1620 |
return get(table_key, st)
|
| 1621 |
|
| 1622 |
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
6e8c650d2ce15312123d480286d53cce98bdbf03e36a4f0c409ce896b42a8ce2
|