Re: [Lift] Re: Mapper objects deserialized from json have all of their fields marked dirty

2010-02-04 Thread Ross Mellgren
P.S. Hooray for ticket system that doesn't suck!

-Ross

On Feb 4, 2010, at 3:54 PM, David Pollak wrote:

> 
> 
> On Thu, Feb 4, 2010 at 12:47 PM, Ross Mellgren  wrote:
> I reopened it since I marked it invalid pending the ML discussion.
> 
> Added a comment with the ML discussion.
> 
> Excellent!
>  
> 
> -Ross
> 
> On Feb 4, 2010, at 3:45 PM, David Pollak wrote:
> 
>> 
>> 
>> On Thu, Feb 4, 2010 at 12:41 PM, harryh  wrote:
>> > - Serializing the dirty-state of each field (e.g., field_name_$dirty:
>> > true)
>> 
>> This further increases the size of the serialized objects which is not
>> ideal
>> 
>> >  - A thread-local flag for the default dirty/clean
>> >   - A global flag indicating that the fields are marked clean/dirty on
>> >   deserialization
>> 
>> And these seem no good due to the user of global variables
>> 
>> What about option 4:
>> 
>> - change the deserialize function to take an extra parameter
>> indicating whether the fields should be marked dirty or not.
>> 
>> Sure... Please update the ticket: 
>> https://www.assembla.com/spaces/liftweb/tickets/2-Mapper-objects-deserialized-from-json-have-all-of-their-fields-marked-dirty-
>>  
>> 
>> ?
>> 
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Lift" group.
>> To post to this group, send email to lift...@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> liftweb+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/liftweb?hl=en.
>> 
>> 
>> 
>> 
>> -- 
>> Lift, the simply functional web framework http://liftweb.net
>> Beginning Scala http://www.apress.com/book/view/1430219890
>> Follow me: http://twitter.com/dpp
>> Surf the harmonics
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Lift" group.
>> To post to this group, send email to lift...@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> liftweb+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/liftweb?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
> 
> 
> 
> -- 
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



Re: [Lift] Re: Mapper objects deserialized from json have all of their fields marked dirty

2010-02-04 Thread David Pollak
On Thu, Feb 4, 2010 at 12:47 PM, Ross Mellgren  wrote:

> I reopened it since I marked it invalid pending the ML discussion.
>
> Added a comment with the ML discussion.
>

Excellent!


>
> -Ross
>
> On Feb 4, 2010, at 3:45 PM, David Pollak wrote:
>
>
>
> On Thu, Feb 4, 2010 at 12:41 PM, harryh  wrote:
>
>> > - Serializing the dirty-state of each field (e.g., field_name_$dirty:
>> > true)
>>
>> This further increases the size of the serialized objects which is not
>> ideal
>>
>> >  - A thread-local flag for the default dirty/clean
>> >   - A global flag indicating that the fields are marked clean/dirty on
>> >   deserialization
>>
>> And these seem no good due to the user of global variables
>>
>> What about option 4:
>>
>> - change the deserialize function to take an extra parameter
>> indicating whether the fields should be marked dirty or not.
>>
>
> Sure... Please update the ticket:
>
> https://www.assembla.com/spaces/liftweb/tickets/2-Mapper-objects-deserialized-from-json-have-all-of-their-fields-marked-dirty-
>
>
>>
>> ?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Lift" group.
>> To post to this group, send email to lift...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> liftweb+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/liftweb?hl=en.
>>
>>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



Re: [Lift] Re: Mapper objects deserialized from json have all of their fields marked dirty

2010-02-04 Thread Ross Mellgren
I reopened it since I marked it invalid pending the ML discussion.

Added a comment with the ML discussion.

-Ross

On Feb 4, 2010, at 3:45 PM, David Pollak wrote:

> 
> 
> On Thu, Feb 4, 2010 at 12:41 PM, harryh  wrote:
> > - Serializing the dirty-state of each field (e.g., field_name_$dirty:
> > true)
> 
> This further increases the size of the serialized objects which is not
> ideal
> 
> >  - A thread-local flag for the default dirty/clean
> >   - A global flag indicating that the fields are marked clean/dirty on
> >   deserialization
> 
> And these seem no good due to the user of global variables
> 
> What about option 4:
> 
> - change the deserialize function to take an extra parameter
> indicating whether the fields should be marked dirty or not.
> 
> Sure... Please update the ticket: 
> https://www.assembla.com/spaces/liftweb/tickets/2-Mapper-objects-deserialized-from-json-have-all-of-their-fields-marked-dirty-
>  
> 
> ?
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
> 
> 
> 
> 
> -- 
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



Re: [Lift] Re: Mapper objects deserialized from json have all of their fields marked dirty

2010-02-04 Thread David Pollak
On Thu, Feb 4, 2010 at 12:41 PM, harryh  wrote:

> > - Serializing the dirty-state of each field (e.g., field_name_$dirty:
> > true)
>
> This further increases the size of the serialized objects which is not
> ideal
>
> >  - A thread-local flag for the default dirty/clean
> >   - A global flag indicating that the fields are marked clean/dirty on
> >   deserialization
>
> And these seem no good due to the user of global variables
>
> What about option 4:
>
> - change the deserialize function to take an extra parameter
> indicating whether the fields should be marked dirty or not.
>

Sure... Please update the ticket:
https://www.assembla.com/spaces/liftweb/tickets/2-Mapper-objects-deserialized-from-json-have-all-of-their-fields-marked-dirty-


>
> ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



[Lift] Re: Mapper objects deserialized from json have all of their fields marked dirty

2010-02-04 Thread harryh
> - Serializing the dirty-state of each field (e.g., field_name_$dirty:
> true)

This further increases the size of the serialized objects which is not
ideal

>  - A thread-local flag for the default dirty/clean
>   - A global flag indicating that the fields are marked clean/dirty on
>   deserialization

And these seem no good due to the user of global variables

What about option 4:

- change the deserialize function to take an extra parameter
indicating whether the fields should be marked dirty or not.

?

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.