Serializing from the database instead of the ResultSet in MySql


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Serializing from the database instead of the ResultSet in MySql

  1. #1
    Join Date
    Apr 2003
    Posts
    9

    Serializing from the database instead of the ResultSet in MySql

    I have a screen for employees with 2000 records, I want to display record by record when I press the "next button", I make a query "select * from employees" and put the result of the ResultSet variable in screen, that's fine, but what happens I have 2000 records in memory for only see 5 or 10, that is baddly programmed and the perfomance of the system will be always down, is there a way with Java and Mysql where I can serialize in line with the data base? I mean, if I click the "next button" I read from the database instead of the ResultSet.

  2. #2
    Join Date
    Mar 2003
    Posts
    84
    standard filereader.
    you can load the file record by record and analyze it that way if you want.

    search for FileReader in the API
    I'm surprised more of you people don't get hit by cars.

  3. #3
    Join Date
    Apr 2003
    Posts
    9
    Yes, but if i access the file record by record I will acces a lot the database and that will be bad too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center