Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
500 万件のレコードを含む非常に大きなビューがあり、名前が繰り返され、各行には一意のトランザクション番号が含まれています。一意の名前を含む 9000 レコードの別のビューも存在します。今、名前が2番目のビューにある最初のビューのレコードを取得したい
select * from v1 where name in (select name from v2)
しかし、クエリの実行には非常に時間がかかります。ショートカット方法はありますか?