DerrickBrayanClayton / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
0 stars 0 forks source link

Write a memcached provider #89

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
For memcachedproviders.codeplex.com, look at "DefaultTranscoder"

See also: http://stackoverflow.com/questions/2122081/is-there-anyway-to-
serilize-linq-object-for-memcached

Original issue reported on code.google.com by marc.gravell on 24 Jan 2010 at 7:55

GoogleCodeExporter commented 8 years ago

Original comment by marc.gravell on 28 Jan 2010 at 7:26

GoogleCodeExporter commented 8 years ago
r282

Original comment by marc.gravell on 28 Jan 2010 at 7:57

GoogleCodeExporter commented 8 years ago
I will test it on my linq model.

Original comment by duc%ducd...@gtempaccount.com on 28 Jan 2010 at 11:52

GoogleCodeExporter commented 8 years ago
Note that if this is L2S, it *must* have serialization enabled (set to 
"unidirectional" 
on the designer surface).

I'd need to check re EF.

Original comment by marc.gravell on 29 Jan 2010 at 8:23

GoogleCodeExporter commented 8 years ago
I tested on m-1 model, i can list several problem in the testing

My model is Post ---m-----1---- Category

I tried <Post> alone, it work perfectly, but Post.category is returning null, 
in 
normal case, it suppose to return a category. 
2nd: List<Post> dont work. 

Maybe my implement was wrong? or it was not supported? :)

Original comment by trungg...@gmail.com on 29 Jan 2010 at 1:50

GoogleCodeExporter commented 8 years ago
sorry, the last one was my other email. Anyway, it seam you are using a 
different 
version of enyim memcached than memcached provider.

Original comment by duc%ducd...@gtempaccount.com on 29 Jan 2010 at 2:03

GoogleCodeExporter commented 8 years ago
OK; I'll try to update to the "memcached provider" model, and I'll run some 
more tests 
on lists (they certainly worked as *child* properties). Do you have any 
specific 
failing cases I can look at?

Original comment by marc.gravell on 29 Jan 2010 at 2:13

GoogleCodeExporter commented 8 years ago
This is my demo, you can change the connectionstring to your sqlserver and 
there is a 
file name table.sql, which you can use it to run and create those 2 table on 
your 
sqlserver.

In theory , these 2 page must output the same result if it could cached all 
required 
data or can identify it as a perquisite for another query (like Post.category 
base on 
FK) 
http://localhost/
http://localhost/home/runtest

I think this could be the most 2 important thing in l2s.If you have any problem 
with 
this just tell me, especially with the sql file. 

Original comment by duc%ducd...@gtempaccount.com on 29 Jan 2010 at 2:51

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks; I have the download - I will look at this ASAP, but note that I have a 
conference this weekend so it might take an extra day or two.

Original comment by marc.gravell on 29 Jan 2010 at 3:29

GoogleCodeExporter commented 8 years ago
no problem since i stared this issue :)

Original comment by duc%ducd...@gtempaccount.com on 29 Jan 2010 at 3:31