This document discusses optimizing database management of large-scale web access logs. It proposes using a pre-processor to hash and sort logs in memory before writing to the database. An experiment compares the performance of using the pre-processor versus directly writing to the database. The results show the pre-processor is 18-20 times faster for input time and memory usage is twice as high but run time is much better compared to only using the database. The document concludes the proposed approach of using a pre-processor for in-memory processing before database storage provides better performance and optimization than traditional approaches.