Hi, U actually didnt understood my point.i m not saying that java is faster than c++. I was saying that i used shell to connect to my database and that slowed down the whole process. And also i was not saying that there was database issues. There was transfer of data issue to database. The job of transfering packet details to database. I agree on you that shell is completely different in comparison from java or c++. But that was not the issue in the first place. On Jan 20, 2008 7:19 PM, Thomas Hruska <[EMAIL PROTECTED]> wrote:
> 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/ > > > -- Have A Good Day Rahi Jain [Non-text portions of this message have been removed]
