In general, limits and colimits do not commute.
It is therefore of interest to list the special conditions under which certain limits do commute with certain colimits.
This page lists some of these.
For a small filtered category, the functor commutes with finite limits.
More in detail, let
be a small filtered category
be a finite category;
a functor;
then the canonical morphism
is an isomorphism.
In fact, is a filtered category if and only if this is true for all finite and all functors .
Similarly to the example of filtered limits, for a small sifted category, the functor commutes with finite limits. In fact, this is usually taken to be the definition of a sifted category, and then a theorem of Gabriel and Ulmer characterizes sifted categories as those for which the diagonal functor is a final functor.
More precisely, if is a finite group, is a small cofiltered category and is a functor, the canonical map
is an isomorphism. This fact is mentioned by André Joyal in Foncteurs analytiques et espèces de structures; a proof can be found here.
Let be a category with pullbacks and colimits of shape .
We say that colimits of shape are stable by base change or stable under pullback if for every functor and for all pullback diagrams of the form
the canonical morphism
is an isomorphism.
All colimits are stable under base change in for instance
but not in for instance
Remark
In topos theory and (∞,1)-topos theory one says that colimits are universal if they are preserved under pullback.