Jump to content

Structure Advice?


kirk112

Recommended Posts

Hi

 

I currently have the following table structure.

 

jbe_messages

jbe_message_id

jbe_id

candidate_ref

message

opened

clicked

date_sent

 

 

jbe_settings

jbe_id

candidate_ref

jbe_settings

active

date_created

 

This structure stores all the search information in a serialized string in the jbe_settings field and the contents of the message in the jbe_messages->message.  Which works fine, but I am trying to think of a way in which I can track all of the different jobs that have been sent to a specific candidate (tracked by job_id which is the primary key of the jobs table) so that each time the script runs it does no send the same job to the same candidate more than once. 

 

I have thought about having a extra table

 

Jbe_sent_jobs

Jbe_sent_id

Jbe_message_id

Job_id

 

And each of the job_id that are sent are stored in this table, the problem with this is that this table would become very large very quickly i.e 5000 different emails, each with 40 jobs (200000 records from the first send out and the emails are normally sent twice per week).

 

Can anyone think of a better way of storing this information.

 

Thanks

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.