With this technique, you are effectively starting the transaction at a lower level in the call stack, thereby reducing the amount of time you are in the database.
通过此技巧,您可以有效地在调用栈的较低层次开始事务,从而减少花费在数据库中的时间。
Always starting transactions at the highest level in the call stack (the API layer) can be inefficient, particularly in cases of high-user-throughput and high-database-concurrency needs.
始终在调用栈的最高层(api层)启动事务有时会效率低下,特别是对于具有高用户吞吐量和高数据库并发性需求的应用程序。
It makes life easier for device manufacturers because it provides a starting point - a known working implementation of the stack that can be adapted to various devices.
它的出现使设备制造商变得更轻松,因为它提供了一个起始点—可以在多种设备中使用的堆栈的知名工作实现。
应用推荐