Skip to content

Instantly share code, notes, and snippets.

@xaviershay
Created April 22, 2009 10:52
Show Gist options
  • Select an option

  • Save xaviershay/99716 to your computer and use it in GitHub Desktop.

Select an option

Save xaviershay/99716 to your computer and use it in GitHub Desktop.
Need to build a "waiting list" for registrations.
Thinking about duplicating the table structure, rather than having an 'accepted' flag on the Registration.
This way it's easier to efficiently query stats, without having to worry about joining in registration or including 'accepted' in conditions/indexes.
Should be able to meta-program most of it, so not much extra code. Keeps data clean.
Registration
has N Options
has 1 Thing
... other things
WaitingList::Registration
has N WaitingList::Options
has 1 WaitingList::Thing
... other things
Thoughts? Any existing code/libraries to help out?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment