# Why does passage to DG categories cure non-locality of derived categories?

In the famous book 'Residues and duality', the author notes that one of the principal difficulties in constructing the exceptional inverse image functor $f^{!}$ is that the derived category of quasicoherent sheaves is not a local object. In order to resolve this difficulty, the author first defines it for residual complexes, a procedure he finds 'clumsy' and 'roundabout'.

In his notes on Geometric Langlands, D. Gaitsgory forcefully explains the necessity of considering DG enhancements to define the derived category for general prestacks

The problem is that the gluing procedure alluded to above, is not defined for triangulated categories. (This was the problem that Hartshorne had to confront in his “Residues and duality”; this is why that book is so thick, instead of being just 10 pages long.) Now, the advatnage of the ∞-category language is that gluing can be defined for DG-categories.

Is there a high-level explanation as for why the difficulties occuring while trying to glue derived categories (as triangulated categories) are resolved if we pass to DG categories? In other words, how could someone trying to solve this problem come up with the idea to introduce DG enhancements?

• Because dg-category is almost the same as $k$-linear stable $(\infty,1)$-category so, it is something invariant and conceptual, and triangulated category framework has been introduced for computational reasons, rather then conceptual, so, it is difficult to expect that they will behave good. – Pochekai Mykola Jun 16 '18 at 18:43
• Here is my possibly incomplete understanding for why functorial cones (one big advantage of DG categories) are necessary for categorical descent. Assume you have an open cover of a variety $X$ by open sets $U,V$. To do categorical descent, you need to be able to reconstruct a morphism $f:F\rightarrow G$ from the data of the morphisms $f|_U$, $f|_V$, and a homotopy between their restrictions to $U\cap V.$ (In the derived world, you cannot keep track of this extra datum of a homotopy, which leads to non-functoriality of cones.) The natural way to do this... – dhy Jun 16 '18 at 21:54
• ...is to interpret $F$ as $\operatorname{Cone}(F|_U\oplus F|_V\rightarrow F|_{U\cap V})[1],$ and similarly for $G$. Then the data described above gives you a morphism between the two morphisms inside the cone. However, because you don't have functoriality of cones, you can't upgrade this to a morphism $F\rightarrow G$ without upgrading to some other (e.g. DG) setting. – dhy Jun 16 '18 at 21:59

The 2-category of DG-categories cures the non-functoriality of the cone construction by defining $Cone(f)$ as a suitable weighted colimit (and the weight is essentially the additive analogue of a topological cone construction). There is no such thing in the triangulated world.