mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-19 14:41:00 +00:00
1 line
8.8 KiB
JSON
1 line
8.8 KiB
JSON
[{"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301602216.224025, "message": "The pages are hitting our custom redis caching most of the time, and sometimes falling through to referencing the models directly", "group_id": 81, "id": 495509}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301602243.205591, "message": "It would be amazing if we could do something like Comment(id=357, __defer__=True)", "group_id": 81, "id": 495520}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301602260.434345, "message": "which would return the same thing as Comment.objects.only('id').get(id=357)", "group_id": 81, "id": 495524}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301602275.389565, "message": "Any suggestions / ideas? Source diving into the queryset generator only left me with madness in my head :(", "group_id": 81, "id": 495527}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301602755.7490399, "message": "Yeah we want to completely avoid the database round trip, and also the query generator which is expensive when called repeatedly.", "group_id": 81, "id": 495670}, {"user_id": 1, "stars": [], "topic_id": 16578, "date_created": 1301603011.7817149, "message": "@t So SQL and Django's ORM right now are the canonical data store for Convore, but live updates are all shuttled through Redis.", "group_id": 81, "id": 495788}, {"user_id": 738, "stars": [], "topic_id": 16578, "date_created": 1301602785.5394249, "message": "err not request", "group_id": 81, "id": 495682}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301602846.083149, "message": "lol@everyone", "group_id": 81, "id": 495750}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301602190.3285799, "message": "Canv.as is hybrid redis / MySQL backend, and we're moving more and more pages to fetch a list of ids from redis, get a list of model instances via in_bulk, and then grab more cached values via the model instances.", "group_id": 81, "id": 495501}, {"user_id": 1, "stars": [], "topic_id": 16578, "date_created": 1301602721.8165219, "message": "Ohh, because you're constructing it from Redis, got it", "group_id": 81, "id": 495661}, {"user_id": 738, "stars": [], "topic_id": 16578, "date_created": 1301602798.96876, "message": "Model.object.defer(blah blah).get()", "group_id": 81, "id": 495698}, {"user_id": 225, "stars": [{"date_created": 1301607876.7438791, "user_id": 141}, {"date_created": 1301659279.265358, "user_id": 5778}], "topic_id": 16578, "date_created": 1301602881.4368989, "message": "I don't blame the piano, I just don't understand why I was born different.", "group_id": 81, "id": 495756}, {"user_id": 738, "stars": [], "topic_id": 16578, "date_created": 1301602777.8432801, "message": "can't you just do request.object.defer('fields', 'to', 'defer').get(id=357)", "group_id": 81, "id": 495677}, {"user_id": 738, "stars": [], "topic_id": 16578, "date_created": 1301602839.55583, "message": "Ahh, yes I see. Reading comprehension fail.", "group_id": 81, "id": 495742}, {"user_id": 1736, "stars": [{"date_created": 1301603832.6309011, "user_id": 225}, {"date_created": 1301603554.0028341, "user_id": 1}, {"date_created": 1301659348.9453831, "user_id": 5778}], "topic_id": 16578, "date_created": 1301603461.253372, "message": "Probably better build a proxy object (possibly using Django's proxy meta flag) that loads most of the object all at once on a cache miss", "group_id": 81, "id": 495895}, {"user_id": 1, "stars": [{"date_created": 1301659270.9328351, "user_id": 5778}], "topic_id": 16578, "date_created": 1301602813.859771, "message": "@mgrouchy No because he's not actually getting it from the database, he's constructing the object from known data", "group_id": 81, "id": 495710}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301602871.6328411, "message": "When I write django I feel like I'm playing the piano with bigfoot's paws for hands.", "group_id": 81, "id": 495754}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301602929.2136481, "message": "@ericflo Are messages stored in SQL in Convore? How much of Django's model system are you using for the core mechanics of Convore?", "group_id": 81, "id": 495769}, {"user_id": 1, "stars": [], "topic_id": 16578, "date_created": 1301602694.4543281, "message": "I'm kind of confused, why not just do Comment.objects.only('id').get(id=357)?", "group_id": 81, "id": 495656}, {"user_id": 1736, "stars": [], "topic_id": 16578, "date_created": 1301602806.8514659, "message": "@mgrouchy That will still try to issue a (useless) SQL query", "group_id": 81, "id": 495704}, {"user_id": 1736, "stars": [], "topic_id": 16578, "date_created": 1301603321.3235531, "message": "The normal deferred stuff probably isn't what you want here though, since that will run one query per-attribute that is a miss in Redis (presumably you want to load several at once)", "group_id": 81, "id": 495865}, {"user_id": 1, "stars": [], "topic_id": 16578, "date_created": 1301602945.406693, "message": "@t Everything", "group_id": 81, "id": 495771}, {"user_id": 1, "stars": [], "topic_id": 16578, "date_created": 1301602974.077529, "message": "I'm just kind of tracing through Django code now to look for deferred stuff (I have no idea how internals of deferred fields work) and found this http://code.djangoproject.com/browser/django/trunk/django/db/models/query_utils.py#L67 probably helpful", "group_id": 81, "id": 495780}, {"user_id": 23196, "stars": [], "topic_id": 16578, "date_created": 1301603257.7965, "message": "Q; how i can make an excluded field in forum appear in Admin page?", "group_id": 81, "id": 495853}, {"user_id": 206, "stars": [{"date_created": 1301604468.989203, "user_id": 1}, {"date_created": 1301604479.4756241, "user_id": 1736}, {"date_created": 1301605350.0947831, "user_id": 603}], "topic_id": 16578, "date_created": 1301604424.084841, "message": "Malcolmt is the third.", "group_id": 81, "id": 496120}, {"user_id": 1, "stars": [], "topic_id": 16578, "date_created": 1301603559.418802, "message": "@coderanger Yeah I think that's what I'd do too", "group_id": 81, "id": 495912}, {"user_id": 3978, "stars": [], "topic_id": 16578, "date_created": 1301603561.572475, "message": "maybe deferred_class_factory, defer the unknown fields", "group_id": 81, "id": 495913}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301603907.489114, "message": "@ericflo btw I fucking love the realtime star notification. We're doing that for Canv.as stickers too. At what point do we cobrand \"Convore for business. Canvas for pleasure\" ? ;)", "group_id": 81, "id": 496005}, {"user_id": 1736, "stars": [], "topic_id": 16578, "date_created": 1301603987.044529, "message": "@t You might want to downplay the .... sexual connotations :-P", "group_id": 81, "id": 496021}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301603995.80932, "message": "@coderanger where's the \"meta flag\"?", "group_id": 81, "id": 496027}, {"user_id": 1736, "stars": [], "topic_id": 16578, "date_created": 1301604160.5605171, "message": "@t class Meta: proxy=True", "group_id": 81, "id": 496060}, {"user_id": 1736, "stars": [{"date_created": 1301629941.451215, "user_id": 1822}], "topic_id": 16578, "date_created": 1301604179.1111381, "message": "That will allow you to subclass a model without creating new tables and other ORMy things", "group_id": 81, "id": 496063}, {"user_id": 1736, "stars": [{"date_created": 1301604467.21069, "user_id": 1}, {"date_created": 1301605348.5665579, "user_id": 603}, {"date_created": 1301693153.289356, "user_id": 177}], "topic_id": 16578, "date_created": 1301604375.681869, "message": "@t There are roughly 3 people in the world that truly understand the ORM. Two of them are @alex", "group_id": 81, "id": 496108}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301604319.6022749, "message": "Oh oh, I see. Which is what deferred_class_factory already does. Thanks!", "group_id": 81, "id": 496098}, {"user_id": 225, "stars": [{"date_created": 1301659426.60426, "user_id": 5778}], "topic_id": 16578, "date_created": 1301604341.436029, "message": "This should be enough for me to build what I want, or at least enough to get me running head first into something else Django I don't understand :)", "group_id": 81, "id": 496101}, {"user_id": 225, "stars": [], "topic_id": 16578, "date_created": 1301604108.0623951, "message": "I'm seeing deferred_class_factory which I'll effectively have to copy and then rewrite DeferredAttribute to fetch all fields on a single miss, which yeah @coderanger is definitely what I want.", "group_id": 81, "id": 496050}, {"user_id": 1, "stars": [], "topic_id": 16578, "date_created": 1301603983.8538649, "message": "@t hah :)", "group_id": 81, "id": 496020}, {"user_id": 7, "stars": [], "topic_id": 16578, "date_created": 1301627565.2510631, "message": "@freakboy3742 understands it as well", "group_id": 81, "id": 498907}] |