+ Reply to Thread
Results 1 to 15 of 15

 

Thread: Database structure for mobile phone deals

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts


    Hi

    I need some advice on how to to best set out the database structure for storing mobile phone deals from merchant datafeeds.

    Ive come to the conclusion that its best to have a seperate table for

    Handsets : showing handset name model image etc

    and a seperate table for

    Tariffs - Nbr of mins, texts, monthlycost etc.

    Both the above tables will be manually filled in.

    Then a third table will link the two together by handsetid and tariffid as according to the info in the datafeeds.

    Is this the best way to do it - As some feeds are incomplete and do not contain all the info about the tariff for example.

    Can anyone tell me how many different tariffs are out there. I'm assuming there to be somewhere is the region of 500 or am a way off.....
    I know theres only about 250 different phones so that is not a problem.

    Any advice is appreciated

    thanks

  2. #2
    Dazza30's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2006
    Location
    cheshire uk
    Posts
    1,141
    Thanks
    79
    Thanked 43 Times in 33 Posts
    This is a realy interesting question, its a bit dissapointing know one has an answer for you.

  3. #3
    data muncher

    Status
    Offline
    Join Date
    Sep 2004
    Location
    Berlin
    Posts
    2,475
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In an ideal world you will have the following:

    Your own handset table
    A merchants product table
    A promotional product/free gift table
    A services table (talkplans etc) with ids to seperate the networks.

    You would then link the merchants record, free gift and talkplans to you own handset record in the database. Mine looks like this though, a little more complicated.

    handset table
    merchants product table
    promotional product/free gift table
    services table (talkplans etc) with ids to seperate the networks.

    Handsets2merchantsproducts
    Handset2promotionalproducts
    Handset2services
    Handsets2discounts

    So effectively mine is the same but i am adding a seperate tables to store the link relationships between the handsets and the merchants products etc, this causes a hell of a lot more coding and is not so efficient but has many benefits that are a little too complicated to explain here.


    Just one note that you are not taking into account is that while there might be 300 tarrifs or so they all have different variables, such as 12 month, 18 month and then of course you get 3 months free line rental deals from the networks, not the merchants and visa versa, so it can be a lot more complicated than just adding them as a single product.

    Regards
    Nothing to see here...

  4. #4
    Registered User

    Status
    Offline
    Join Date
    Jun 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by pricethat View Post
    Mine looks like this though, a little more complicated.

    handset table
    merchants product table
    promotional product/free gift table
    services table (talkplans etc) with ids to seperate the networks.

    Handsets2merchantsproducts
    Handset2promotionalproducts
    Handset2services
    Handsets2discounts
    Our only uses 6 but does all of the above + extra what they are and how they relate to each other i aint gonna tell ya but its good enough to get todays deals : 33072 Should point out these are avaliable deals but if we was to include the out of stock - discontinued deals then the count would be far more ..oh this is also not taking into account the free gift deals or the sim free/payg deals
    Rich:9 Networks
    nearly gave me a heart attack though what extra ... ohhh thats what ya meant
    Last edited by Itchy; 01-11-06 at 02:50 PM. Reason: nearly had a heart attack :)
    I'm not the Messiah!
    I say You are, Lord, and I should know. I've followed a few.

  5. #5
    Registered User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    2,448
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Obviously you can't give the whole game away to competitors but my setup is similar to how Pricethat described, though without the link tables as all the relationships are one-to-many so there is no real need for them.

    My current stats are: - 335 Phones, 193 Tariffs, 24 Makes, 24 Merchants, 17 Free Gifts & 9 Networks. I won't mention the number of deals as I got told off for boasting last time

    Those are the active rows, there are more entries in the tables that aren't active, for example phones that are no longer available.

  6. #6
    lowndsy's Avatar
    Dark Prince

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Behind you
    Posts
    1,805
    Thanks
    5
    Thanked 37 Times in 28 Posts
    Mine has 1 table, 40000 rows!

  7. #7
    Registered User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    Thanks for the advice - Looking at pricethat's post, I'd say thats exactly what I had planned to do. I suppose you have to work around the poor quality of some of the feeds. Obviously this is reflected in the way you design the database structure

    Thanks Guys

  8. #8
    Registered User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    2,448
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by kungfumobiles View Post
    I've never had a go of linking database tables, is it something you do through MySQL, a MySQL requests or PHP? Probably a daft question for most but something a n00b like me needs to learn.
    You do it in the request, like: - SELECT TableA.FieldA,TableA.FieldB,TableB.FieldA,TableB.F ieldB FROM TableA JOIN TableB ON TableA.FieldA=TableB.FieldC
    That probably makes no sense but it really is fairly simple once you've done it a few thousand times.
    Quote Originally Posted by kungfumobiles View Post
    The other thing I have a problem with are tariffs. Are they the same across all mobile phone providers? So for example:
    mobiles4everyone nokia 6111
    (I pick this example cause mobiles4everyone is by far the best)
    Canary 30 tariff appears for a few different providers (e2save x 2, buymobilephones, onestopphoneshop etc.). Is the Canary 30 (and every other Orange tariff) tariff something you would have input yourself, like you would have your own phone image/thumbnail and description?
    Yes it is something you would need to enter yourself and it is the same across all providers, mostly!. E.g. Dolphin £35 (18mth) is 500 Mins + 500 Txts, unless you buy it directly from Orange when it's 550 Mins + Unlimited Txts. (this isn't really an issue as the Orange feed has been broken since they relaunched the program)

    Should I be offering a combined data feed to affiliates? If so, what would you pay for it?

  9. #9
    Registered User

    Status
    Offline
    Join Date
    Jun 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Rich View Post
    this isn't really an issue as the Orange feed has been broken since they relaunched the program

    Working fine in our system
    I'm not the Messiah!
    I say You are, Lord, and I should know. I've followed a few.

  10. #10
    Registered User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    2,448
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Itchy View Post
    Working fine in our system
    Good for you! For me, having the contract length missing, half the offers linking to pages where the offers can't be brought and, until recently, the other half linking to pages with the only option to continue the order process was a phone number makes it a pretty pointless feed.

    To answer your questions Kungfu: -
    Since the offers form Merchant A and Merchant B are the same type of information, and you want to be able to select deals from multiple merchants, then its simpler to put all the deals in one table.

    Searching 20-30,000 records should be small fractions of a second. The important thing is to get your indexes right.

  11. #11
    Registered User

    Status
    Offline
    Join Date
    Jun 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Rich View Post
    Good for you!
    Cheers pats me developer on the back as well
    I'm not the Messiah!
    I say You are, Lord, and I should know. I've followed a few.

  12. #12
    data muncher

    Status
    Offline
    Join Date
    Sep 2004
    Location
    Berlin
    Posts
    2,475
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is this a programming willy waving competition or something? In the scale of things you are talking about a silly ten pence script that wont change the world so i hardly think bragging about how many offers you can calculate or whether or not you can use an orange feed is really anything worth shouting about itchy eh?
    Nothing to see here...

  13. #13
    Registered User

    Status
    Offline
    Join Date
    Jun 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by pricethat View Post
    Is this a programming willy waving competition or something? In the scale of things you are talking about a silly ten pence script that wont change the world so i hardly think bragging about how many offers you can calculate or whether or not you can use an orange feed is really anything worth shouting about itchy eh?
    lol shouting whos shouting just pointing out that it infact it does work for those that can make it work

    besides check your old posts out i seem to remember a quite a bit of boasting coming from your end something about a great database script that can run anything you throw at it ...... can it do orange proberly not
    I'm not the Messiah!
    I say You are, Lord, and I should know. I've followed a few.

  14. #14
    data muncher

    Status
    Offline
    Join Date
    Sep 2004
    Location
    Berlin
    Posts
    2,475
    Thanks
    0
    Thanked 0 Times in 0 Posts
    And your actual contribution to the thread was?
    Nothing to see here...

  15. #15
    Registered User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    2,448
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Lets not start an argument. There's no point really is there? I'm sorry if I've come across as arrogant in any of my posts. While I may have boasted a little about my site in some posts (hey, I'm proud of it) I hope I've only posted when there has been something to contribute to the thread.

    All I was trying to say was the the Orange feed needs improving. I only know of one comparison site that includes the Orange deals from the feed, which I now guess is yours Itchy, and that doesn't include the tariffs with issues - i.e. all the Student, Dolphin and Panther 45+55 ones. That's over 60% of the feed scraped.
    This is an example of the landing page when a user clicks a link for the KG800 on Racoon 25. This shows the users choice in the 'your selection' box, but the only next step is to choose the tariff again. In the previous version the select buttons wasn't there leaving the user in a dead end. It would be trivial for the feed to link to the next step in the process, but TD/Orange won't make the change.

    If more affiliates complained about the data, rather than putting up with the scraps, then maybe Orange would consider fixing it.

+ Reply to Thread


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. mobile phone database
    By DutchRomano in forum Affiliate Marketing Lounge
    Replies: 4
    Last Post: 17-10-08, 01:17 PM
  2. Great new deals from One Stop Phone Shop
    By rich2nd in forum DGM Affiliates
    Replies: 0
    Last Post: 23-09-05, 12:14 PM
  3. Mobile phone deals
    By mobiles4everyone in forum DGM Affiliates
    Replies: 2
    Last Post: 16-03-05, 11:43 PM
  4. Mobile phone deals
    By mobiles4everyone in forum Affiliate Future
    Replies: 0
    Last Post: 16-03-05, 03:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2