If your data is that large, you'll need to break it up into chunks.
If possible, I'd also consider using a SQL database and managing your data through that.
Lastly, you could try use an MS Access DB, but it does depend on not just the number of rows, but the amount of data overall.