Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/documents/sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class QuerySession
class IDocumentSession
class DocumentStore
class IdentityMapDocumentSession
class LightWeightDocumentSession
class LightweightSession
class DirtyCheckingDocumentSession

IDocumentStore --> IQuerySession: Builds
Expand All @@ -25,7 +25,7 @@ IQuerySession <|.. IDocumentSession
IDocumentStore <|.. DocumentStore

IDocumentSession <|.. IdentityMapDocumentSession
IDocumentSession <|.. LightWeightDocumentSession
IDocumentSession <|.. LightweightSession
IDocumentSession <|.. DirtyCheckingDocumentSession
```

Expand All @@ -46,7 +46,7 @@ types of sessions are:
| `IDocumentStore.OpenSerializableSessionAsync()` | Read/Write | Yes | No |

::: tip INFO
The recommended session type for read/write operations is `LightWeightDocumentSession`, which gives the best performance. It does not do change tracking, which may not be needed for most cases.
The recommended session type for read/write operations is `LightweightSession`, which gives the best performance. It does not do change tracking, which may not be needed for most cases.

For read-only access, use `QuerySession`.
:::
Expand Down
Loading