As already said, using Adobe Media Encoder to create an MP4 file using the H.264 codec is a good way to get a small file with reasonably good quality.
But this all depends on how you are going to use the file.
Read this:
FAQ: What is the best format for rendering and exporting from After Effects?