Intelligent MySQL GROUP BY for Activity Streams
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm building an activity stream for our site, and have made some decent headway with something that works pretty well. It's powered by two tables: stream : id - Unique Stream Item ID user_id - ID of the user who created the stream item object_type - Type of object (currently 'seller' or 'product') object_id - Internal ID of the object (currently either the seller ID or the product ID) action_name - The action taken against the object (currently either 'buy' or 'heart') stream_date - Timestamp that the action was created. hidden - Boolean of