Shanghai: The Ivory Compact is an epic historical novel by Canadian theatre director and acting coach David Rotenberg. Spanning several centuries of the history of the city of Shanghai, it is one of the longest novels ever published. While Shanghai was written as a stand-alone story, it includes cameo appearances by young versions of characters who appear in Rotenberg's detective series set in contemporary Shanghai. Shanghai received critical acclaim and sold well worldwide.