Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Limitations in m-to-m rel & check duplicates? 27 Jul 2012 08:53 #2913

  • tr4ding
  • tr4ding's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 42
  • Thank you received: 0
HI Folks :)

My component is structured in a lot of many to many relations.......

I think in JCook there are 2 main problems:

1. I am forced to use a surrogate primary key in a many to many relation table....

eg. (correct according to DBMS literature)

table: student_exams
Fields:
id_student
id_exam
other fields..........

same eg. (when I use JCook framework)

table: student_exams
Fields:
id
id_student
id_exam
other fields.........

2. In JCook, I'm unable to check duplicates in tables......this can cause Database inconsistency.....expecially in a many-to many-relation table.....

Proposed solution

Problem n.1 is marginal in JCook roadmap........

My idea is to use InnoDB Engine instead of MyISAM in order to impose referential constraints in tables.......could this work to prevent problem n. 2?

I think (but I prefer to be contradicted :) ) that cascade function to delete FK doesn't work properly or I don't understand how it works properly for my case study.....

Have a nice day :)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.051 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started