[transfer-dev] Re: Convert array of transfer objects to query
On Jun 16, 9:21 am, Dan O'Keefe dan.oke...@gmail.com wrote: On Tue, Jun 16, 2009 at 8:39 AM, Bob Silverberg bob.silverb...@gmail.comwrote: It seems to me that the main reason that one would use a query over a collection of objects is for performance - to save the cost of creating all of those objects. So if you already have a collection of objects, why would you want to convert them back to a query? It seems like you'd be losing functionality and not gaining anything in terms of performance. What sort of things would you be looking to do with a query that you cannot do, or wouldn't choose to do, with a collection of objects? Unless I am mistaken, I was thinking it would be the other way around. If I already have cached objects I use in other places, would be quicker to convert to a query, versus a hit to the database. I know the TQL is cached after the first hit, but a DB call versus converting it in memory. I think Bob meant that if you already have the array of objects, why convert it to a query? Why not just return the array of objects and use the array in your view? No conversion, no DB hit. Matt Williams --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: Soft Delete?
On Mar 3, 4:06 pm, Mark Mandel mark.man...@gmail.com wrote: All good stuff guys. Another option - for basic soft deleting, set up conditions on your collections, to ignore your soft deleted items. Then when soft deleting, if you do an update(), do a discard() after, which will clear out the object from collections. You will still need to filter when doing TQL operations, but it gets you 99% of the way there. Where it all gets tricky is if you want to pull back the object in after being deleted - the cache pretty much gets in the way, which can be tricky (that's the real fun one.. how do you manage the cache when people want to undelete). Mark This is essentially how I handle it. And I have to add deleted = :deleted for any parent, child or sibling tables. I use true or false instead of nulls, so there is a corresponding setParam ('deleted','false','boolean') along with each query. And in the case of an OUTER JOIN, I will have (deleted = :deleted OR deleted IS NULL) I'm not sure if I'll have to worry about the undelete challenge or not. I suppose one option would be to somehow force a reload of all those related objects. Matt Williams --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: Cache not updating
It sounds like somehow when you get the transfer bean that you are saving it is not pulling the cached version. How do you get that bean and populate it? The Remote Proxy could be the issue if it is somehow getting setup with a different instance of Transfer. Matt Williams On Jan 27, 8:04 am, Chris H 3darkli...@gmail.com wrote: there are no caching options set in the transfer config, so they're the defaults. the cache updates correctly for 1-2 of the objects, but not for most of the others. if it helps, i'm updating via Ajax with a Remote Proxy that was generated with ColdSpring. But this works fine for one of the objects, so that can't be it. What could be a cause for this if the database is updated fine but after a reload of the page the old values are still displayed? thanks! On Jan 27, 1:51 pm, Chris Peterson overrid...@gmail.com wrote: sounds like you have your cache in perhaps 2 different spots, or the save is happening under a different application name? Care to post the cache portion of your transfer config? Chris Peterson On Tue, Jan 27, 2009 at 7:30 AM, Chris H 3darkli...@gmail.com wrote: Hey, this is my first full application i'm doing with Transfer and i'm having a problem with the cache. Most cached objects don't get updated on save(), but the changes are visible in the database. Only when I do an ?init=true (which reinits Model-Glue ColdSpring) are the TransferObjects updated. any ideas? thanks in advance! -- Hey! I dont tell you how to tell me what to do, so dont tell me how to do what you tell me to do! ~ Bender (Futurama) --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---
[transfer-dev] Re: transfer object onetomany (add to array)
No, they sat on a Matt with a hat. I do! I do like green eggs and ham! m@ On Dec 16, 3:45 pm, Jared Rypka-Hauer armchairde...@gmail.com wrote: So if the Matt standing on the mat has kids, do those kids hop on pop? It had to be said... I know I was not the only one thinking it. J On Dec 16, 2008, at 2:26 PM, Matt Quackenbush wrote: On Tue, Dec 16, 2008 at 2:23 PM, Matt Williams wrote: Whenever I walk out my front door, there's a Matt and a mat (it says Welcome). Matt is standing on the mat. ok. enough. Matt /cf_rimshot :D --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups transfer-dev group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~--~~~~--~~--~--~---