Pregunta de entrevista de Ambigai Systems

What is database constraints? How do you optimize code?