Abstract:
ระบบงบประมาณ พัสดุ การเงิน และบัญชีกองทุนโดยเกณฑ์พึงรับพึงจ่าย ลักษณะ 3 มิติ หรือเรียกอย่างย่อว่า ระบบบัญชี 3 มิติ มีการใช้งานกันในทุกส่วนงานของมหาวิทยาลัยเทคโนโลยีพระจอมเกล้าพระนครเหนือ (มจพ.) เมื่อมีปริมาณข้อมูลและจำนวนผู้ใช้งานเพิ่มขึ้น ในขณะที่ระบบฐานข้อมูลมีทรัพยากรเท่าเดิม การสืบค้นข้อมูลจึงมีประสิทธิภาพลดลง เนื่องจากมีภาระงานมากขึ้น
ผู้วิจัยมีแนวคิดที่จะปรับปรุงประสิทธิภาพในการสืบค้นข้อมูลด้วยการใช้ Result Cache เนื่องจากเป็นวิธีการที่ทำได้ง่าย ไม่ต้องจัดหาทรัพยากรเพิ่มเติม โดยหลักการของ Result Cache คือ เก็บผลลัพธ์ของการสืบค้นข้อมูลเอาไว้ใช้ซ้า เมื่อมีการสืบค้นแบบเดิมอีกครั้งหนึ่ง ระบบฐานข้อมูลจะส่งกลับผลลัพธ์ที่เก็บไว้ได้ทันที โดยไม่ต้องประมวลผลใหม่อีกครั้ง การใช้ Result Cache เหมาะสมกับข้อมูลที่มีการใช้งานบ่อย และมีการเปลี่ยนแปลงน้อย โดยเฉพาะอย่างยิ่งเหมาะกับการสืบค้นข้อมูลจำนวนมากที่ได้ผลลัพธ์การสืบค้นจำนวนน้อย
ผู้วิจัยได้ทดลองทำการสืบค้นข้อมูลแบบใช้และไม่ใช้ Result Cache บนเครื่องแม่ข่าย เพื่อเปรียบเทียบเวลาที่ใช้ในการสืบค้นทั้งสองแบบ ผลการทดลองแสดงให้เห็นว่า การสืบค้นข้อมูลแบบที่ใช้ Result Cache นั้นช่วยลดเวลาประมวลผลลงอย่างมีนัยสำคัญ ในกรณีที่มีผลลัพธ์ที่ต้องการพร้อมใช้งานอยู่ในหน่วยความจำ แต่จะใช้เวลาประมวลผลเพิ่มขึ้นเล็กน้อย ในกรณีที่ผลลัพธ์ที่ต้องการไม่มีอยู่ในหน่วยความจำหรือไม่พร้อมใช้งาน
Abstract:
The budget, procurement, finance and general ledger in 3-dimension system, in abbreviated GL3D, is used by every department of King Mongkut s University of Technology North Bangkok (KMUTNB). When the volume of data and the number of users is increasing while the database system has the same resources, data retrieval might be less performance due to more workload.
The researcher has a notion to improve query performance by using result cache because it is easy to apply and no needed additional resource. Concept of result cache is to keep result of query for reuse. When the same query is called again, then the database system is immediately returned the stored result without re- execution. Result Cache is appropriated with frequently used and not rarely changes data, especially it is suitable for large amount data query with small amount result.
The researcher tested data queries using and not using server result cache to compare elapsed time of both queries. The testing results shows that querying using server result cache can reduce execution time significantly in the event that the desired result is available in the cache. But it will take a little more execution time in the event that no desired result is in the cache or it is not available.