I'm using Redis Servicestack in C#. Currently, the way I'm storing data is the following:
var listTypedRedis = db.As<MyObject>();
foreach (var obj in myObjects)
{
listTypedRedis.AddItemToList(listTypedRedis.Lists["urn:list"], obj);
}
I successfully store about 6000 records. I have problems retrieving the records as it appears to be slower than SQL.
Took Redis 138ms, Took SQL 105ms
The way I'm retrieving data is the following:
return (db.As<MyObject>().Lists["urn:list"].GetAll());
Is there any problems with my code above? Is it because of the deserialization that is causing it to be so slower? Thanks!