<div dir="ltr">Hello,<div><br></div><div>While looking at ways to speed up my routing queries with pg_trsp, I noticed my restrictions table is always being hit with sequential scans.</div><div>I came across <a href="http://gis.stackexchange.com/questions/109156/pgrouting-what-index-should-have-the-restriction-table">http://gis.stackexchange.com/questions/109156/pgrouting-what-index-should-have-the-restriction-table</a> but unfortunately it has no answer.</div><div><br></div><div>I tried guessing two indexes but they did not work. While looking through the trsp.c code on Github to see if that could point me in the right direction, I was unable to figure out how the restrictions are being loaded.</div><div><br></div><div>Does anyone have any suggestions on the best way to index the restrictions table?</div><div><br></div><div>Thanks,<br>Matt</div></div>