<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentStoreConnectionPoolMaxSizeKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:@NSPersistentStoreConnectionPoolMaxSizeKey"
  },
  "title" : "NSPersistentStoreConnectionPoolMaxSizeKey"
}
-->

# NSPersistentStoreConnectionPoolMaxSizeKey

The maximum connection pool size to use on a store that supports concurrent request handling.

```
let NSPersistentStoreConnectionPoolMaxSizeKey: String
```

## Discussion

Values that you specify for this key are of type <doc://com.apple.documentation/documentation/Foundation/NSNumber>. The connection pool size determines the number of requests a store can handle concurrently, and is a function of how many contexts attempt to access store data at any time. Generally, you don’t set this, and use the default value instead.

The default connection pool size is implementation-dependent and may vary by store type or platform.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)