-
数据库的视图能不能和 notion 一样弄成独立的一个页?
2024-06-17 10:44镜像的话只是复制了个镜像吧,但是视图都是一体的,删了其中一个的视图,镜像数据库的视图也跟着删掉了吧
目前的镜像数据库就是指完全相同的数据库。以后可能会支持不同的镜像能隐藏不同的视图
-
数据库的视图能不能和 notion 一样弄成独立的一个页?
2024-06-17 10:42副本的视图是独立互不影响的吧,那数据库下的关联文档是一份还是两份呢
数据库的「完整副本」之间是独立的,但关联的文档都是同一个
-
兄弟们,你们一个数据库最多使用到多少行,卡不卡顿?
2024-06-17 10:11因为需求就很复杂。SQL 我已经尽可能优化过了,再优化的话要等我自己学一下 SQL 了。AI 目前还优化不动这个 SQL
-
兄弟们,你们一个数据库最多使用到多少行,卡不卡顿?
2024-06-16 13:30模板运算越复杂、耗时越久,数据库就越卡,因为目前每次编辑都是整个数据库块的所有显示的条目都刷新一轮。
比如说这个模板,用了之后编辑数据库就会很卡:
.action{ if empty (index . "完成") } .action{ if index . "custom-avs" } .action{ $id := .id } 剩余 .action{ len (queryBlocks "with RECURSIVE finish_tree AS ( SELECT id, parent_id FROM blocks WHERE root_id = '?' and markdown like '* [x]%' and type = 'i' and subtype = 't' UNION ALL SELECT fi.id, fi.parent_id FROM blocks as fi INNER JOIN finish_tree as ft ON fi.parent_id = ft.id ) ,un_finish_parent AS ( SELECT id, parent_id FROM blocks WHERE root_id = '?' and type = 'l' and id in ( select parent_id from blocks where root_id = '?' and markdown like '* [ ]%' and type = 'i' and subtype = 't' ) ) select * from blocks where id not in (select parent_id from un_finish_parent ) and id not in (select id from finish_tree) and root_id = '?' and type = 'i' and subtype = 't'" $id $id $id $id ) } / 总共 .action{ len (queryBlocks "SELECT * FROM blocks WHERE root_id = '?' AND type = 'i' AND subtype = 't' AND id not in (SELECT parent_id FROM blocks WHERE type = 'l')" $id) } .action{ end } .action{ end }
-
数据库模板列如果换行会出现大段空白
2024-06-15 11:39如果你想换行没空白的话,要把模板里的
.action{...}
都合并成一行(代码丢失可读性了显示才能没空白)比如:
.action{ $type := index . "类型" }………….action{ else }未开发票.action{ end }
-
求大佬帮忙写两个数据库模板
2024-06-14 16:52我换了个函数解决,分别是 2 个月 和 120 天 的:
.action{ if (index . "日期") } .action{ (index . "日期").AddDate 0 2 0 | date "2006-01-02" } .action{ end }
.action{ if (index . "日期") } .action{ (index . "日期").AddDate 0 0 120 | date "2006-01-02" } .action{ end }
-
求大佬帮忙写两个数据库模板
2024-06-14 11:25日期:
.action{ if (index . "日期") } .action{ $date := index . "日期" } .action{ $time := mulf 24 120 | toString } .action{ $time = list "+" $time "h" | join "" } .action{ $date = $date | date_modify $time | date "2006-01-02" } .action{ $date } .action{ end }
数字:
.action{ mulf 1.03 (index . "数字") }
有用请采纳,或者打赏我:https://afdian.net/a/JeffreyChen