.NET Persistency

Search XAP.NET 6.6
Searching XAP.NET 6.6 Documentation
Browse XAP.NET 6.6
Offline Documentation

Download latest offline documentation in HTML format:
xap.net-6.6.1-documentation.zip (3.7MB)

                                                              

Summary: Using the GigaSpaces External Data Source interface with the .NET API.

Overview

GigaSpaces External Data Source interface is the key middleware connection link for loading and storing data to and from persistent data sources.

.NET persistency is a GigaSpaces implementation on top of Java SQLDataProvider and BulkPersister interfaces.

Before you begin, it is recommended to read the External Data Source section.

.NET Specific Settings

Creating a Space with ExternalDataSource

You can either use GigaSpaces NHibernate implementation, or create a custom implementation:

Advanced Options

The number of objects passed between the .Net IDataEnumerator (Part of the ISqlDataSource interface) to the server on each iteration can be changed, its default value is set to 1000.

This can be done by adding a custom property to the ExternalDataSourceConfig object.

spaceConfig.ExternalDataSourceConfig.CustomProperties = new Dictionary<string, string>();
//Add custom properties to the dictionary
spaceConfig.ExternalDataSourceConfig.CustomProperties.Add("iterator-batch-size", "[batch size]");

Server Side Logging

To enable the .NET ExternalDataSource adapter logging, refer to the GigaSpaces Logging section.

Creating Custom ExternalDataSource Implementation

To create a custom implementation, implement the GigaSpaces.Core.Persistency.ISqlDataSource interface.

Before creating a custom implementation, read the following considerations.

See an example for the NHibernate implementation under <GigaSpaces Root>\dotnet\practices\ExternalDataSource\NHibernate.

This documentation relates to product versions 6.5 and 6.6 (for the latest changes, look for the "New in XAP 6.6" icon).

Labels