对于数据库持久性,是应该使用单行模式,还是多行模式?
Should I use a single row or multi-row schema with database persistence?
不过,多行模式的性能可能相对较差,因为从会话收集属性可能会导致进行多次查询。
However, the resulting performance can be worse with a multi-row schema, since gathering attributes out of the session might cause multiple queries.
具体地说,必须使用——name命名每个pv实例,还必须使用——cursor启用多行模式。
Specifically, you must name each instance of pv using — name, and you must enable multiline mode with — cursor.
应用推荐