- Which One Of The Following Indexes Would You Choose To Create To Improve The Runtime Of The Following Sql Query That Fin 1 (37.12 KiB) Viewed 23 times
Which one of the following indexes would you choose to create to improve the runtime of the following SQL query that fin
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Which one of the following indexes would you choose to create to improve the runtime of the following SQL query that fin
Which one of the following indexes would you choose to create to improve the runtime of the following SQL query that finds the names of all restaurants which are located in the Inner West neighbourhood? SELECT R.name FROM Restaurants R, Neighbourhoods N WHERE ST_Contains (N.geom, R.location) = True AND N.name = 'Inner West'; O A GIST/R+-tree index on Neighbourhoods.geom O A GIST/R+-tree index on Restaurants.location O A B+-tree index on (Restaurants.name, Neighbourhoods.geom, Restaurants.location) O A bitmap index on Neighbourhoods.name O A B+-tree index on (Neighbourhoods.geom, Restaurants.location)