foreign keys, performance improvement, RT#13971