我有两个表:user,user_matching。我想在 1 个查询中从两个表中获取项目。例如,类似 SQL 的查询:
select * from user where user.id = (select id from user_matching where id = user_matching_id)
通常我应该在 NoSQL DB 中使用 2 个查询。现在我这样做:
- 从user_matching获取user_id
- 用 user_id 从用户处获取
我可以使用 Tarantool 仅用 1 个查询替换它吗?怎么做?