Optimizing Interactions Between the COM+ Business Logic Tier and the Data Tier
The data tier often contains mostly static information—information persisted on durable media. Because this tier encompasses information that is mostly static, it requires a thorough analysis for potential bottlenecks. In addition to the obvious possibility for connection bottlenecks, hot spots can be caused by frequently accessed records, inefficient data access methods, and the need to coordinate access to legacy systems.
Connecting to the Data Tier
Two considerations play an important role in designing a data tier for a COM+ application: connection pooling and COM+ just-in-time (JIT) activation, and the use of DSNs. Components that make connections to the data tier should use COM+ object pooling set on the component.
When creating DSNs, use object constructor strings specified on the component instead of creating a File DSN. File DSNs are slower than a connection using an object constructor string. Object constructor strings can be specified on the component property sheet. For more information, see COM+ Object Constructor Strings.
If you are using components to access a SQL Server database, use COM+ object pooling instead of SQL connection pooling.
If your component is using ADO to fetch multiple recordsets, establish multiple connections for the component. When ADO retrieves multiple recordsets, it creates multiple connections in the background if you do not create them. If you create them, you can pool them and have more control over the number of the connections used.
Related topics
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기