Replies: 1 comment
-
or append search main_table_idfrom join_table sql_query = SELECT id, name, UNIX_TIMESTAMP(updated_at) AS updated FROM main_table WHERE (updated_at >=FROM_UNIXTIME($start) AND updated_at <=FROM_UNIXTIME($end)) \
or id in (SELECT distinct(main_table_id) from join_table WHERE updated_at >=FROM_UNIXTIME($start) AND updated_at <=FROM_UNIXTIME($end) ) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
use Main+ delta schema and sql_joined field together。
tables key columns :
one main_table record will have many join_table records.
problem: the join_table can update the code independently without update the main_table, what's the best way to sync data from mysql to manticoresearch plain table in plain mode? to update related main_table's updated_at column when join_table is updated or any other solution? Many thanks for your suggestion.
Beta Was this translation helpful? Give feedback.
All reactions