Collision with ground causes lag

i have a spike shape obstacle in my project that goes up and down from under ground the problem is when i set the collision of the mesh to blockall or blockalldynamic it causes alot of lag and fps drop and when i set it to no collision the game is just fine. so is there a way to make the mesh collision enabled for only the character and not the ground?