As a follow up to my question regarding Dijkstra's algorithm in SQL, does anyone have pointers to resources which discuss how to generally implement data-intensive algorithms efficiently in SQL?