Akavache icon indicating copy to clipboard operation
Akavache copied to clipboard

Akavache does not have search function like Map-reduce, Index or any.

Open pavan7parekh opened this issue 8 years ago • 6 comments

pavan7parekh avatar Apr 13 '17 08:04 pavan7parekh

@pavan7parekh could you elaborate on what you'd like to see?

shiftkey avatar Apr 14 '17 02:04 shiftkey

@shiftkey My Application has filter option for records. In Akavache, There is only one option to get record by key. Akavache doesn't have any option for filter data like get by any other field.

pavan7parekh avatar Apr 19 '17 14:04 pavan7parekh

Akavache is a key valuestore that stores values as either bytes or json. Adding a "search all keys for values which match x" isn't something I would be super excited about as Akavache is designed to work in low memory environments on desktop AND mobile.

What platform are you using Akavache with? What does your domain model look like? What type of searches do you need to do across that model? What would the proposed API changes look like?

ghuntley avatar Apr 20 '17 06:04 ghuntley

@ghuntley , I am developing mobile app in Xamarin.Forms. Please have a look below my model:

public class ProductDto
{
		public int Id { get; set; }
		public string Name { get; set; }
		public string Description { get; set; }
		public string Sku { get; set; }
		public string BarCode { get; set; }
		public string Specification { get; set; }
}

I want all product where Sku or BarCode are contain "xyz" string.

pavan7parekh avatar Apr 20 '17 10:04 pavan7parekh

Any update?

pavan7parekh avatar Aug 02 '17 10:08 pavan7parekh

You cant achieve this with akavache. It is by Design as explained above

EmilAlipiev avatar Apr 09 '18 20:04 EmilAlipiev