Food might be more immediately important than history but if you don't understand what's been done to you - by your own people and the so-called 'they' - you can never get around it.
Time spent researching varies from book to book. Some novels require months, even years of research, others very little. I try to do most of my research before I begin but inevitably questions emerge during the writing.