Created
March 19, 2014 14:24
-
-
Save fideloper/9642664 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sql_query = SELECT topic_id, topic FROM topics | |
# joined/payload field fetch query | |
# joined fields let you avoid (slow) JOIN and GROUP_CONCAT | |
# payload fields let you attach custom per-keyword values (eg. for ranking) | |
sql_joined_field = post from query; \ | |
SELECT topic_id, post \ | |
FROM posts \ | |
ORDER BY topic_id ASC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment