2 ms·
I didn't know about Q objects before. What are their capabilities regarding, say, moving from an SQL database to a web-service or a third party application? I
by mononcqc 16y ago
I didn't know about Q objects before. What are their capabilities regarding, say, moving from an SQL database to a web-service or a third party application?
I mean, this is the kind of stuff I have to do surprisingly often when maintaining legacy applications and putting them up to date. Your data model ends up changing or just not supporting all the same idioms again. You might need to join some info coming from your database without half of it coming from a RPC.
I've found such changes in the foundations of where data you get is to cause a whole damn lot of problems on all the layers above. I haven't figured out a better way than wrapping lots of it in fat models, but if Q objects have something that can help with that I'd be very happy to learn about it.
- teilo 16y agoQ objects are a way to represent complex SQL in a progressive fashion that would be unwieldy or impossible with the standard Django ORM chaining technique. It really doesn't address your use case.