Re: Horde_Db best practices question
Sebastian Birnbach <[email protected]> Mon, 13 Nov 2017 10:54:36 +0100
| Newsgroups | gmane.comp.horde.devel |
|---|---|
| Message-ID | <CACTNBFM9b_8FEB0ROcAmdvFTP9WH1rt1vRSB6kJpBTsUw2_dNg@mail.gmail.com> |
followup: I would like to use the RDO driver for object access across tables. Any advice? 2017-11-13 9:41 GMT+01:00 Sebastian Birnbach <[email protected]>: > I have an application that manages dossiers to which users can add > comments, much like user comments to a Whups ticket. I expect the number of > dossiers to grow into the 10.000s over the years and every dossier may > comprise up to a hundred comments. > > The backend db is a mySQL. > > One way to manage the comments would be to add each one into a big table > and include a reference to the dossier object. Lookup speed would degrade > with the number of comments in the table, though. Approaching the design > limit, selecting comments out of a million may be quite slow. > > Another way would be to create a dedicated comments table for each record. > Selecting comments for a dossier would probably be much faster but all the > tables would also clutter table space. Plus I don't see a pre-fabricated > way to do this in the Horde framework and there is no example in the > existing applications either. > > What is your recommended way of approaching this? > > Thanks for your advice > -- dev mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]