)]}'
{"osprofiler/drivers/redis_driver.py":[{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"e477f9c22a1d3609bce3014f86a5f435fb640424","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        fields \u003d set(fields or self.default_trace_fields)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        result \u003d []"},{"line_number":102,"context_line":"        ids \u003d self.db.scan_iter(match\u003dself.namespace + \"*\")"},{"line_number":103,"context_line":"        for i in ids:"},{"line_number":104,"context_line":"            trace \u003d jsonutils.loads(self.db.lindex(i, -1))"},{"line_number":105,"context_line":"            result.append({key: value for key, value in trace.items()"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_cd2d465f","line":102,"updated":"2018-12-14 19:03:43.000000000","message":"why do you use here scan_iter? \n\nWhy not just  self.db.lrange(0, -1) that will work way faster..","commit_id":"c6d5a5499ad482acaff13a98fd3e65f98d3e02e9"},{"author":{"_account_id":5950,"name":"Ilya Shakhat","email":"shakhat@gmail.com","username":"shakhat"},"change_message_id":"b659aec1a36864c3d3e9e8c1d32cb9812601de09","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        fields \u003d set(fields or self.default_trace_fields)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        result \u003d []"},{"line_number":102,"context_line":"        ids \u003d self.db.scan_iter(match\u003dself.namespace + \"*\")"},{"line_number":103,"context_line":"        for i in ids:"},{"line_number":104,"context_line":"            trace \u003d jsonutils.loads(self.db.lindex(i, -1))"},{"line_number":105,"context_line":"            result.append({key: value for key, value in trace.items()"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_e304c013","line":102,"in_reply_to":"3f79a3b5_cd2d465f","updated":"2018-12-17 09:36:51.000000000","message":"currently the schema is following:\n  \u003ckey \u003d osprofiler:id\u003e \u003cvalue \u003d list of events\u003e\n\nscan_iter gives names of lists, then lindex is used to ick up the last item (to retrieve timestamp)\n\nhow lrange() can be used? it iterates over a single list, right?","commit_id":"c6d5a5499ad482acaff13a98fd3e65f98d3e02e9"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"148a6891f53b951392fd592d8db85d3e6728236a","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        fields \u003d set(fields or self.default_trace_fields)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        result \u003d []"},{"line_number":102,"context_line":"        ids \u003d self.db.scan_iter(match\u003dself.namespace + \"*\")"},{"line_number":103,"context_line":"        for i in ids:"},{"line_number":104,"context_line":"            trace \u003d jsonutils.loads(self.db.lindex(i, -1))"},{"line_number":105,"context_line":"            result.append({key: value for key, value in trace.items()"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_1d98307a","line":102,"in_reply_to":"3f79a3b5_e304c013","updated":"2018-12-17 16:24:26.000000000","message":"oh I misunderstood what this method does, sorry ;)","commit_id":"c6d5a5499ad482acaff13a98fd3e65f98d3e02e9"}]}
