Q.Which to compost: raw eggshells or cooked?
Is it correct that raw eggshells (dried and reduced to small pieces) will bio-degrade quickly in compost or soil, whereas cooked ones remain “as is” longer and tend to attract pests?
There is no indication that insects or pests are attracted to egg shells in compost, either raw or cooked.
Cooking your egg shells will eliminate any danger of salmonella or botulism transfer.
You should do what ever you feel safe with for your own composting.
Here are some links for you with more information.
https://www.gardeningknowhow.com/composting/ingredients/eggshells-in-the-garden.htm
http://msue.anr.msu.edu/news/adding_eggshells_to_compost