我是 SugarORM 的新手,我试图保存记录。
Report report = new Report(SessionManager.getInstance().getUserid(),
assessmentContainer.getAssessmentTitle(),
getDateTimeNow(), response);
report.save();
在 SugarORM 给出的快速指南中,它似乎包含了上下文,但我不知道如何包含我的上下文,它与我的 Report 构造函数有冲突,所以我省略了它。
看起来它成功了,但似乎效率低下。知道有什么问题吗?看看我下面的日志。
02-01 14:10:32.736 903-903/com.usrs.jiarong.musrs I/Sugar﹕ on create
02-01 14:10:33.136 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.136 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.136 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.136 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.136 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.146 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.156 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.166 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.166 903-903/com.usrs.jiarong.musrs I/Sugar﹕ domain class
02-01 14:10:33.166 903-903/com.usrs.jiarong.musrs I/Sugar﹕ create table
02-01 14:10:33.166 903-903/com.usrs.jiarong.musrs D/Sugar﹕ Fetching properties
02-01 14:10:33.166 903-903/com.usrs.jiarong.musrs I/Sugar﹕ creating table REPORT
02-01 14:10:33.176 903-903/com.usrs.jiarong.musrs I/Sugar﹕ Report saved : 1
02-01 14:10:33.196 903-903/com.usrs.jiarong.musrs I/Choreographer﹕ Skipped 30 frames! The application may be doing too much work on its main thread.