项目中 需要大量数据的保存操作,每条执行save操作效率太低,在官网上找到bull_create 的批量存储方式,效率提高很多Insert in bulkWhen creating objects, where possible, use thebulk_create()method to redu...
分类:
其他好文 时间:
2014-06-28 23:24:44
阅读次数:
594
Using self-defined Parcelable objects during an Android AIDL RPC / IPC callIn my previous post “Using the Android Interface Definition Language (AIDL)...
分类:
移动开发 时间:
2014-06-20 16:30:16
阅读次数:
537
ChangeQueue类实现ChangeSource接口,声明了拉取下一条Change对象的方法 * A source of {@link Change} objects. * * @since 2.8 */public interface ChangeSource { /** * @retu...
分类:
其他好文 时间:
2014-06-19 06:07:09
阅读次数:
264
SQLDMO(SQL Distributed Management Objects)参考手册:http://technet.microsoft.com/en-us/library/aa312550(v=sql.80).aspxsql server 2005后改为SMO参考手册:http://tech...
分类:
数据库 时间:
2014-06-18 18:28:19
阅读次数:
216
原题如下,意思就是说无序数组(由0,1,2组成),一遍扫描,把数组整理成0,1,2这样的序列。
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red,...
分类:
其他好文 时间:
2014-06-18 07:12:43
阅读次数:
174
Structural Things
An
active class is a class whose objects own one or
more processes or threads and therefore can initiate control activity. An active class is just like a class except that it...
分类:
其他好文 时间:
2014-06-17 22:44:27
阅读次数:
310
??
Both sequence diagrams and communication diagrams are kinds of interaction diagrams. An
interaction diagram
shows an interaction, consisting of a set of objects or roles, including the messages ...
分类:
其他好文 时间:
2014-06-17 19:15:04
阅读次数:
186
VB取消了繁琐的代码编写工作,从而使得Windows下的编程方法焕然一新,但是它的功能还是存在一定的局限性的;之后发展到了VB6.0,也就是自己完成自己的系统的编程语言时代,它提供了全新的访问数据库的方法,即使用集成的ADO(ActiveX Data Objects),从而实现了访问数据库的功能;现如今发展到了VB.NET,它是一种更加完善的语言。...
分类:
Web程序 时间:
2014-06-16 18:52:43
阅读次数:
307
-- 1. 查看被锁的表
SELECT p.spid, a.serial#, c.object_name, b.session_id, b.oracle_username,b.os_user_name
FROM v$process p, v$session a, v$locked_object b, all_objects c
WHERE p.addr = a.paddr
AND a.p...
分类:
数据库 时间:
2014-06-14 12:55:33
阅读次数:
256
Mantle makes
it easy to write a simple model layer for your Cocoa or Cocoa Touch application. Mantle
can still be a convenient translation layer between the API and your managed model objects.
...
分类:
其他好文 时间:
2014-06-14 09:27:26
阅读次数:
463