Rahi Jain wrote: > hi > Actually i worked on tcpdump once and used the shell script to organize the > packets and send them to database. But that was also very timetaking and > slow process. Then i learned that language make a lot of difference to the > processing speed. They old me if i will use java to organize then it would > be a lot faster and quick. So it depends largely on the language you are > choosing and the how you are handling the packets. > In my case i used to put packets in different file on time basis and then > transfering the one by one into the database. So in my case the transferring > to database was the real problem that took time. > I would love to hear the details from you sandeep. > ----- > Have a Good Day > Rahi Jain
Saying Java is faster than C/C++ is likely to draw some wrath from various members. Especially since language choice has nothing to do with database performance. Comparing a shell script to a real language is comparing apples and oranges. Shell scripts usually involve running several external programs while a real language typically has all the necessary features at its fingertips. Temporarily disabling foreign key and ACID constraints on the relevant tables when inserting a lot of data _all at once_ usually fixes database performance problems. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
