[SQL] SELECT i.*, u.name AS author_name, u.username AS author_username, u.avatar_url AS author_avatar FROM d_idea i left JOIN d_user u ON u.id = i.user_id WHERE i.id = ? AND i.is_draft = 0 | Params: [166025] [SQL] SELECT * FROM d_block WHERE idea_id = ? ORDER BY position ASC, id ASC | Params: [166025] [SQL] SELECT * FROM d_topic WHERE slug IN (?,?,?,?,?) ORDER BY name | Params: ["Productivity","Psychology","Strategy","Learning & Education","Problem Solving"] [SQL] SELECT i.*, u.name AS author_name, u.username AS author_username, u.avatar_url AS author_avatar FROM d_idea i left JOIN d_user u ON u.id = i.user_id WHERE i.is_draft = 0 AND i.id != ? AND i.hashtags LIKE CONCAT('%', ?, '%') ORDER BY i.total_reads DESC LIMIT ? | Params: [166025,"Productivity",3] [SQL] SELECT * FROM d_user WHERE id = ? | Params: [0] [SQL] UPDATE d_idea SET total_reads = total_reads + 1 WHERE id = ? | Params: [166025]
Curated from: deepstash.com
Ideas, facts & insights covering these topics:
1 ideas · 7 reads
We often think to reduce our sleep time for more productive works. But remember, if you don't give your brain enough rest, it won't function with high efficiency. So, maybe you are doing more works without proper sleep, but remember, your efficiency is down and it surely takes more time to finish any work.
Simply, give your brain enough rest, give your best with high efficiency!