mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-20 23:20:57 +00:00
1 line
4.6 KiB
JSON
1 line
4.6 KiB
JSON
[{"user_id": 21059, "stars": [], "topic_id": 37614, "date_created": 1306888619.913316, "message": "On an AppEngine app I made, I remember using memcache quite a bit. Should I use that or is there something similar on ep.io's machines?", "group_id": 2873, "id": 1245273}, {"user_id": 34637, "stars": [], "topic_id": 37614, "date_created": 1306888745.777365, "message": "I think you are supposed to use Redis as a cache instead. (I think there's an adaptor for that for Django.)", "group_id": 2873, "id": 1245293}, {"user_id": 29682, "stars": [], "topic_id": 37614, "date_created": 1306913777.9478071, "message": "You can use http://code.google.com/p/django-redis-cache/", "group_id": 2873, "id": 1250911}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306918098.389257, "message": "Yep, we don't offer memcached as it's not secure", "group_id": 2873, "id": 1251420}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306918123.2448521, "message": "We might offer it in future, with the caveat that anyone else will be able to read and write to it", "group_id": 2873, "id": 1251424}, {"user_id": 21059, "stars": [], "topic_id": 37614, "date_created": 1306941055.561547, "message": "Gotcha'. Does caching in redis significantly reduce database usage? Does the added cost of using redis justify it?", "group_id": 2873, "id": 1254112}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306941303.4568591, "message": "@dsr Redis is very flexible; you can use it as a simple key-value cache, like memcached, which many people do", "group_id": 2873, "id": 1254172}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306941353.5328701, "message": "However, most production deployments I know of use it as a glorified cache", "group_id": 2873, "id": 1254184}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306941080.9862261, "message": "@dsr Redis performs very similarly to memcached, and beats it in some benchmarks", "group_id": 2873, "id": 1254118}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306941518.3055589, "message": "most notably, the persistance is not crash-proof - it will lose the last X seconds of data if it dies, unlike PostgreSQL, which writes transactions to disk as they come in", "group_id": 2873, "id": 1254224}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306941772.243432, "message": "It takes a special service to build an app entirely on it - early ep.io was, and we've since moved nearly everything into PostgreSQL", "group_id": 2873, "id": 1254276}, {"user_id": 21059, "stars": [], "topic_id": 37614, "date_created": 1306941639.8830431, "message": "So speed and flexibility are the selling points.", "group_id": 2873, "id": 1254250}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306941742.3536241, "message": "Indeed, redis is incredibly quick", "group_id": 2873, "id": 1254272}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306941122.9859729, "message": "So you can treat it the same. As for cost, until we launch the new pricing scheme, I couldn't say, but it'll speed up page loads nonetheless", "group_id": 2873, "id": 1254126}, {"user_id": 21059, "stars": [], "topic_id": 37614, "date_created": 1306941166.715683, "message": "So is it common to use both the Postgres database and Redis together? Or just one or the other?", "group_id": 2873, "id": 1254141}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306941332.1341169, "message": "or, you can use it for storing more structured data (it can do sets of values, server-side union and intersection, pub/sub messaging, and more)", "group_id": 2873, "id": 1254177}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306941473.230099, "message": "Heh, no problem - it is persistent, and saves to disk, but that can be turned off", "group_id": 2873, "id": 1254214}, {"user_id": 21059, "stars": [], "topic_id": 37614, "date_created": 1306941392.743664, "message": "Is it persistent? (I'm new to more than SQL databases, obviously.)", "group_id": 2873, "id": 1254199}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306941779.009892, "message": "but it can be done.", "group_id": 2873, "id": 1254278}, {"user_id": 21059, "stars": [], "topic_id": 37614, "date_created": 1306943101.5488081, "message": "So recommended usage is to augment a PostgresSQL database?", "group_id": 2873, "id": 1254665}, {"user_id": 8740, "stars": [], "topic_id": 37614, "date_created": 1306943368.2568929, "message": "@dsr Yep, especially if you're new to using Redis and don't have a good idea of its strengths and weaknesses yet", "group_id": 2873, "id": 1254733}] |