python - Best way to store emails from a landing page on google app engine? -


i have landing page set , have html text box (with error checking valid emails) put submit button. using ndb store different entities.

what i'm looking best way store email person enters. hundreds or thousands of emails entered, there shouldn't duplicates, , want use of emails send large news update entered in emails.

what best way store email data these contraints:

  1. fast duplicate checking
  2. quick callback sending emails en masse

create email entity, , use email address entities key.

this prevent duplicates.

fetching of email addresses can efficient need query kind keys query, , use map_async process emails.

in addition use these entities store progress of email, maybe provide audit trail.

to increase speed @ time of emailing, periodically build cached lists of emails, either in datastore or stored in blob storage.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -