Jump to content

Recommended Posts

 

Hi,

I am making application for vehicle tracking system using GPS. There I am supposed to receive data every minute from a device.

Technically - I will be getting 5 records every minute per device.

i.e  5 * 60 * 24 records/day = 7200 records/day for single device.

 

I am suppose to store that data for 2 months

i.e 7200 * 30 * 2 = 4,32,000 records for a single device.

 

If number of devices are 100 then storing all the records (43200000 records) in single table wont be a feasible option, as i need to fetch records from the table for report generation.

 

Can any one help to come over the above mentioned problem?

 

Thanks,

Rahul

Link to comment
https://forums.phpfreaks.com/topic/228411-db-architecture/
Share on other sites

My suggestion would be to create -at the least- a different table for each device every month.  I am, however, a little concerned that you may be out your deapth with this if your imediate thinking was to store everything in a single table (that, and you put the comma in the wrong place for 432,000 ;) ).

Link to comment
https://forums.phpfreaks.com/topic/228411-db-architecture/#findComment-1178117
Share on other sites

 

Well current view is precisely to make different table for different device. That is surely better then storing the data under the single table. Second is to apply partition to database. But I am looking for more specific and more tricky solution. :)

More inputs are most welcome.

Link to comment
https://forums.phpfreaks.com/topic/228411-db-architecture/#findComment-1178276
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.