It was a record-baking effort. Hundreds of bakers and chefs in southern India came together Wednesday to create what they said is the world’s longest cake — about 6.5 kilometers (four miles).

They spread chocolate ganache on the serpentine dessert stretched out on thousands of tables and desks at a festival ground and adjoining roads in the coastal state of Kerala’s Thrissur city.