LETs Suppose I’m going to RUN the Query
CREATE INDEX id ON Student(id) INCLUDE(name)
This is not supported in DJANGO (What I saw) so far. This is an inherent feature to certain DBs if I’m not wrong, But this thing in Certain situations becomes very helpful for DB Query Optimization as We do not need to hit the DISK (Heap) [Index only scan] everytime we are fetching name based on Id.
In fact its not only the name , We can do much more besides that. I’m putting it here to be included in the Core Django. Please comment (reply) for further queries.