查询性能低下的原因是访问了太多的数据 多表连接时返回了所有的列select * from sakila.actor inner join sakila.file_actor using(actior_id) inner join sakila.film using(film_id) where sa... ...
分类:
数据库 时间:
2016-04-01 17:51:23
阅读次数:
215
h2.Akka-构建与JVM上的高并发、分布式和可快速恢复的消息驱动应用的工具集h3.我们相信编写出正确的具有容错性和可扩展性的并发程序太困难了。这多数是因为我们使用了错误的工具和错误的抽象级别。Akka就是为了改变这种状况而生的。通过使用Actor模型我们提升了抽象级别,为构..
分类:
其他好文 时间:
2016-03-14 16:43:59
阅读次数:
234
昨天讲了Struct,还是不够满意,毕竟C++里面类用的比较多嘛,那就先上个类,这段代码是我稍微改编了一下的结果。 #include <utility> #include <iostream> #include <vector> #include "caf/all.hpp" using std::c
分类:
编程语言 时间:
2016-03-10 10:51:45
阅读次数:
221
看usermanual(使用随笔一里面有)看到差不多一半的时候,这个keep_behavior与unbeacome的结合引起了我的注意。(这是为什么呢?) 因为它的示例代码写的太简单了!我真的没看太懂,我就自己把他的改了改放上来。 先讲一下,基本概念,就是一个actor可以有多个行为(behavio
分类:
编程语言 时间:
2016-03-09 14:15:43
阅读次数:
525
Class-based actorsA class-based actor is a subtype of event_based_actor and must implement the pure virtual member function make_behavior returning th
分类:
编程语言 时间:
2016-03-09 10:53:42
阅读次数:
171
e). 消息延迟发送(和前面没太大区别直接上代码) #include <iostream> #include "caf/all.hpp" #include "caf/io/all.hpp" #include <string> #include <chrono> using namespace std
分类:
编程语言 时间:
2016-03-06 15:35:08
阅读次数:
321
c). 同步发送, 等待响应, 超时后收到1个系统消息. 贴上代码 #include <iostream> #include "caf/all.hpp" #include "caf/io/all.hpp" #include <string> #include <thread> #include <c
分类:
编程语言 时间:
2016-03-06 12:56:56
阅读次数:
622
最近干活在写毕设,用到了CAF,看了文档,发现了一些小坑,自己摸索写点随笔。(CAF的github网站 https://github.com/actor-framework/actor-framework)里面的example文件夹例子不错。 但是感觉其实实际使用还是会有很多没讲到。 概念的东西可以
分类:
编程语言 时间:
2016-03-03 14:27:31
阅读次数:
189
unity报错Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes! Please change mesh geometry or supply a ten
分类:
其他好文 时间:
2016-02-25 11:56:20
阅读次数:
143
3 用例图 3.1 概述 用例图用来展示系统的核心功能,及与其交互的用户。 用户被称之为活动者(Actor)。 用例使用椭圆表示。 为简化建模过程,用例图可标注优先级。 3.2 绘图 用例,椭圆,用户能做的事情。 用户,小人,活动者。 新建用例图 元素 保存之后是 .uml 文件 若想导出图片 4
分类:
其他好文 时间:
2016-02-16 23:35:21
阅读次数:
274