make sure all records reference to resource will not touch the database