Thanks guys.. I think I'll go with the get collection, add record and
add(replace) to memcached. Its a perf hit, but considering that I am
pre-populating the cache during server load, I can afford the load time
perf hit. And during runtime, its not all that bad either. Considering that
I expect 90% reads and 10% writes on normal days.

On Wed, Nov 23, 2011 at 3:10 AM, Dustin <[email protected]> wrote:

>
> On Tuesday, November 22, 2011 12:07:15 PM UTC-8, Dormando wrote:
>
>> > Dormando,Quick question.
>> >
>> > So if I were to�
>>
>> > put (key, array_of_size_3)
>> > and then
>> > append (key, new_item)
>> >
>> > value = get (key)
>> > size of value will be 4 ?
>>
>> if array_of_size_3 is "3 bytes", and new_item is "1 byte", then yes.
>> remember that if you're appending complex structures, you still need to be
>> able to parse what you get back.
>>
>
> This entirely depends on the format of your data.  If whatever you are
> storing can be concatenated and make a larger version of it, then yeah.  If
> it's something like a JSON array, then no.
>

Reply via email to