You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to use bool? as a property type it breaks RedisCache:
3/09/2017 1:01:42 PM RedisTableCache(Customer) : Failed to load index (:Author Equal 1) from cache. Linq2DynamoDb.DataContext.Caching.Redis.RedisCacheException: Index is being rebuilt
at Linq2DynamoDb.DataContext.Caching.Redis.RedisTableCache.RedisIndex.LoadIndexEntities(RedisWrapper redis, String indexKey, String indexListKey)
at Linq2DynamoDb.DataContext.Caching.Redis.RedisTableCache.GetEntities(SearchConditions searchConditions, IEnumerable`1 projectedFields, String orderByFieldName, Boolean orderByDesc)
3/09/2017 1:01:43 PM RedisTableCache(Customer) : Index (Author Equal 1) was marked as being rebuilt
Customer : DynamoDb index query: SELECT * FROM Customer WHERE Author Equal 1. Index name: AuthorIndex
It will always say "Index is being rebuilt" doesn't matter how many times you reload for DynamoDb.
The workaround at the moment is to use string instead of bool?.
Nullable types make for very efficient Global Secondary Indexes and is a recommended best practice for dynamodb.
The text was updated successfully, but these errors were encountered:
Yes, I can confirm, that Linq2DynamoDb.DataContext.Caching.Redis fails with nullable fields. Must be some kind of serialization issue. Will take a closer look...
If you try to use bool? as a property type it breaks RedisCache:
3/09/2017 1:01:42 PM RedisTableCache(Customer) : Failed to load index (:Author Equal 1) from cache. Linq2DynamoDb.DataContext.Caching.Redis.RedisCacheException: Index is being rebuilt
at Linq2DynamoDb.DataContext.Caching.Redis.RedisTableCache.RedisIndex.LoadIndexEntities(RedisWrapper redis, String indexKey, String indexListKey)
at Linq2DynamoDb.DataContext.Caching.Redis.RedisTableCache.GetEntities(SearchConditions searchConditions, IEnumerable`1 projectedFields, String orderByFieldName, Boolean orderByDesc)
3/09/2017 1:01:43 PM RedisTableCache(Customer) : Index (Author Equal 1) was marked as being rebuilt
Customer : DynamoDb index query: SELECT * FROM Customer WHERE Author Equal 1. Index name: AuthorIndex
It will always say "Index is being rebuilt" doesn't matter how many times you reload for DynamoDb.
The workaround at the moment is to use string instead of bool?.
Nullable types make for very efficient Global Secondary Indexes and is a recommended best practice for dynamodb.
The text was updated successfully, but these errors were encountered: