Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Origins and Destinations data update interval

 
Bernhard Woditschka
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'd like to use (as many of us do) comboboxes for the origin and destination airports.
But this raises an issue:
How often do we have to update the list of possible origins and destinations?
As this is an expensive (possibly remote) action which involves to fetch all flights in the database I think this should be done verry seldom.
Further this data should change very seldom too so maybe it's ok to just get the data one time on connection to the database and then cache it in the client.
What are your thoughts?
Cheers, Bernhard
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bernhard Woditschka:
Hi,
I'd like to use (as many of us do) comboboxes for the origin and destination airports.

That is what I did.

But this raises an issue:
How often do we have to update the list of possible origins and destinations?
As this is an expensive (possibly remote) action which involves to fetch all flights in the database I think this should be done verry seldom.

In my program, GUI fetch all flights from database every time the GUI is set up. But I image this only happen once in a while, as the GUI is supposed to stay open all the time.

Further this data should change very seldom too so maybe it's ok to just get the data one time on connection to the database and then cache it in the client.
What are your thoughts?
Cheers, Bernhard

My plan is whenever a new flight is added to database, the whole application should be shut down. So when the program begins running again, the combobox get updated. And yes, this shouldn't happen very often.
 
Jawad Kakar
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or you can have a thread running in background, to updata objects in your combo boxes.

Although I don't recommnad it, not need it by the requirement.
Jawad
[ December 25, 2002: Message edited by: Jawad Kakar ]
[ December 26, 2002: Message edited by: Jawad Kakar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic