Sitemap
vanathip gijruenthong

vanathip gijruenthong

--

File format

นอกจาก text/csv และ JSON file format แล้ว ยังมี file format ที่ควรรู้จัก คือ AVRO, Parquet

Get vanathip gijruenthong’s stories in your inbox

Join Medium for free to get updates from this writer.

AVRO และ Parquet เป็น binary file (จัดเก็ดข้อมูลแบบ binary ไม่สามารถเปิดด้วย note แล้วอ่านออกด้วยภาษามนุษย์ได้) แต่ต่างกันตรงที่ AVRO เป็น row-base ในขณะที่ Parquet เป็น column-base

Column-base ไฟล์แบบ Parquet เหมาะสำหรับการเก็บข้อมูลเพื่อทำ Analysis เพราะปกติแล้วเรามักจะหาค่า aggregation เช่น average, max, min จาก column อยู่แล้ว เมื่อข้อมูลใน column เรียงกันก็เลยเรียกขึ้นมาได้เร็วกว่า ซึ่งในบางกรณีเร็วขึ้นหลายสิบเท่าเลย ส่วน row-base ไฟล์ก็จะเหมาะกับการเก็บข้อมูลแบบ transaction (file formats ที่ใช้งานกับ big data มีอะไรบ้าง, Heang Yuthakarn Arngmaneekul)

Press enter or click to view image in full size

https://link.medium.com/4trS97Rqmib

--

--