将GWT与CMS结合使用(如Vosao)(Using GWT with CMS (like Vosao))
我有一个完全用GWT构建的工作网站。 我想测试它在CMS中使用; 因为使用CMS可能是未来更容易维护的方式,而不必重写代码。
这就是我使用GWT的原因:
- 不想使用JS编写JS代码和操作页面。
- 最重要的是,我想重用我的动态小部件,比如我用来填充产品页面的Flextable,而不是处理CSS和模板(以及类似的东西)
与此相关的瓶颈是使用CMS(如Vosao)非常不容易
将GWT用于CMS的正确策略是什么?
I have a working website built completely with GWT. I want to test it to be used in a CMS; since using a CMS is likely to be the way for easier maintainance in the future instead of having to rewrite code so much.
Here's the reason why I use GWT:
- Don't want to write JS code and manipuate pages using JS.
- Most importantly I want to reuse my dynamic widgets, like the Flextable I use to populate the products page, instead of dealing with CSS and template (and stuff like that)
Bottleneck with this is that is quite not easy to use with a CMS (like Vosao)
What is the proper strategy on using GWT with a CMS?
原文:https://stackoverflow.com/questions/15319560
最满意答案
(1)当错误13600的文本引用“第二个错误消息”时,它表示堆栈中的下一个错误 - 在本例中为QSM-03112。
(2)我相信错误的原因是调用TUNE_MVIEW中的第二个参数意味着CREATE MATERIALIZED VIEW语句的全文,但是您只传递查询文本。
(3)对于多行问题,如果你使用显式的PL / SQL匿名块而不是“execute”,我期望它可以工作,例如:
BEGIN :mvddl := 'create materialized view MV_FOO_BAR build immediate refresh fast on commit ... '; END; /
(1) When the text for error 13600 refers to the "second error message", it means the next error in the stack -- in this case QSM-03112.
(2) The reason for the error, I believe, is that the second parameter in the call to TUNE_MVIEW is meant to be the full text of a CREATE MATERIALIZED VIEW statement, but you are passing just the query text.
(3) For the multi-line issue, I expect it will work if you use an explicit PL/SQL anonymous block instead of "execute", e.g.:
BEGIN :mvddl := 'create materialized view MV_FOO_BAR build immediate refresh fast on commit ... '; END; /
相关问答
更多-
首先,从Oracle数据库数据仓库指南开始 : 使用仅连接的物化视图上的快速刷新限制 ... FROM列表中所有表的RowID必须出现在查询的SELECT列表中。 这意味着你的陈述将需要看起来像这样: CREATE MATERIALIZED VIEW MV_Test NOLOGGING CACHE BUILD IMMEDIATE REFRESH FAST ON COMMIT AS SELECT V.*, P.*, V.ROWID as V_ROWID, P.ROWID as ...
-
尝试这个: DBMS_SNAPSHOT.REFRESH( 'v_materialized_foo_tbl','f'); 第一个参数是mat_view名称, 第二个参数定义refresh类型。 f表示快速刷新。 但请记住这一点,它将覆盖任何其他刷新时间选项。 try this: DBMS_SNAPSHOT.REFRESH( 'v_materialized_foo_tbl','f'); first parameter is name of mat_view and second defines type ...
-
问题在于它正在尝试执行的SQL: CREATE MATERIALIZED VIEW "MYDB"."MAGIC" ("MAGIC") AS SELECT 'MAGIC' FROM DUAL; 动态SQL应该是单个语句,不能有语句终止符/分隔符; 这是决赛; 它不喜欢。 在调用get_ddl()之前,可以通过在块中添加对set_transform_param()过程的调用来首先停止dbms_metadata包括它在DDL中: dbms_metadata.set_transform_param(dbms_m ...
-
Oracle物化视图(Oracle Materialized view)[2023-11-04]
根据我的调查,为了使用聚合函数和快速刷新方法创建MV,你的MV和MV日志应该有特殊的结构,以便在脚本下面看到正确的MV和MV日志结构: begin dbms_advisor.tune_mview(task_name=>:t, mv_create_stmt=>'create materialized view mv1 refresh fast as select job,sum(sal) from emp group by job'); end; 然后执行以下查询以查看MV和MV日志的所需结构: ... -
至少有三种不同的方法可以实现这一目标: 快速刷新物化视图快速刷新物化视图可能是理想的解决方案。 插入10,000行将产生少量开销,但不需要重建任何东西; 每次提交后立即可以使用新的总计,并且检索新的总计将非常快。 缺点是快速刷新物化视图很难设置,并且有很多奇怪的陷阱。 它们适用于您的示例模式,但可能无法在更复杂的情况下使用。 示例模式 drop table my_table; create table my_table( id number not null, col1 number no ...
-
Oracle物化视图调优(Oracle materialized view tuning)[2022-10-05]
(1)当错误13600的文本引用“第二个错误消息”时,它表示堆栈中的下一个错误 - 在本例中为QSM-03112。 (2)我相信错误的原因是调用TUNE_MVIEW中的第二个参数意味着CREATE MATERIALIZED VIEW语句的全文,但是您只传递查询文本。 (3)对于多行问题,如果你使用显式的PL / SQL匿名块而不是“execute”,我期望它可以工作,例如: BEGIN :mvddl := 'create materialized view MV_FOO_BAR ... -
我如何知道是否正在使用Oracle中的物化视图?(How can I tell if a Materialized View in Oracle is being used?)[2023-05-03]
根据文档,Oracle审计可以告诉您一次配置。 配置完成后,通过“AUDIT SELECT ON {实体化视图的名称}”启用它。 审计跟踪将位于SYS模式的AUD $表中。 Oracle auditing can tell you this once configured as per the docs. Once configured, enable it by "AUDIT SELECT ON {name of materialized view}". The audit trail will be i ... -
我冒着'重新格式化'您的查询的自由(顺便说一句:我认为那里有一些复制粘贴错误,有些部分在最后看起来会翻倍) '布局'对实际执行时间没有影响,但它使我更容易理解你在做什么(仅仅因为我习惯了我自己的风格,我并不是说它更好,而是简单我习惯了) 无论如何,如果我理解正确并且没有弄乱括号,那么这应该等同于你的查询: SELECT * FROM documents this_ INNER JOIN document_treenodes treenodes14_ ON treenodes14_. ...
-
是。 从实体框架的角度来看,物化视图是一张表格。 唯一需要注意的是,要从物化视图生成模型,物化视图必须具有可用作主键的不可空列。 Yes. From the Entity Framework's perspective, a materialized view is a table. The only caveat is that to generate the model from the materialized view, the materialized view must have a non-n ...
-
Oracle物化视图问题(Oracle materialized view question)[2021-08-16]
是的,这是允许的,请参阅“主键物化视图”: 主键物化视图可以包含子查询,以便您可以在远程物化视图站点创建行的子集 和“复杂的物化观点” 如果您很少刷新并希望获得更快的查询性能,那么请使用方法A(复杂的物化视图)。 如果定期刷新并且可能牺牲查询性能,则使用方法B(简单的物化视图)。 在http://download.oracle.com/docs/cd/B10500_01/server.920/a96567/repmview.htm 在你的例子中,很可能恕我直言,这不是一个“复杂的物化视图”: CREATE ...