ADIL ANIS SHAHZAD No of records= 100002 Record No 100002 is ADIL 8080 ms
This jsp is saving an Object Badarian of type Badarian
The class Badarian... Getters/Setters not shown
My questions are: Comparision-wise, does other type of technologies Asp.net/PHP take as long as my Jsp (about 8 seconds)to save an object to a file. then retrieve the 100002th record from that file and display it.
The file size is 401 bytes for the record of this size. Is this not amazing?It was of the same size for 10002 records!
Performance-wise is it a good code? I am talking about performance while staying within the Java context.
Does a database takes this much longer, if used with some web-based technology like Jsps.
Summary of my questions would be, do I have to loose much if I use objects, ArrayList, file of my choice, Jsps; And not going for databases/ other techs.
Thanx in Advance
Maki Jav [ December 13, 2004: Message edited by: Maki Jav ]
I would go with the database. Once your program becomes more complex such as when you want to have transactions, add tables, your table becomes bigger than available memory, you want to do point queries then you will quickly see how powerful a database is.