Hi all,
It's the first time I look to dbutils and I'm trying to use it for storing incoming SMS.
The records have 4 fields, Id, Sender, Date and Message.
No problems til now.
Now I want to display all messages in a scrollview, grouped by chat (sender).
Which is the more easy and efficient way to do it, supposing the db can grow ang grow and contain hundreds, thousands of messages ?
I think I have to query the database and obtain a list of "senders". Is it easy or do I have to scan all the records ?
Then, for each sender, I should query the database and obtain a list of messages, then I should sort them by date, then I can display them.
Maybe it would be better not to use a single database, but one for each sender ?
I just ask you experts if the approach is correct.
Any hints will be appreciated, thanks
Marco
It's the first time I look to dbutils and I'm trying to use it for storing incoming SMS.
The records have 4 fields, Id, Sender, Date and Message.
No problems til now.
Now I want to display all messages in a scrollview, grouped by chat (sender).
Which is the more easy and efficient way to do it, supposing the db can grow ang grow and contain hundreds, thousands of messages ?
I think I have to query the database and obtain a list of "senders". Is it easy or do I have to scan all the records ?
Then, for each sender, I should query the database and obtain a list of messages, then I should sort them by date, then I can display them.
Maybe it would be better not to use a single database, but one for each sender ?
I just ask you experts if the approach is correct.
Any hints will be appreciated, thanks
Marco