Re: New content type

Nicolas <[email protected]> Fri, 6 Feb 2015 07:58:49 +0100
Newsgroups gmane.comp.php.drupal.devel
Message-ID <CALYYOOCsn6UUbPq02dwQC8SzN7NoBG_Lz9BySyyjqMpAacp41w@mail.gmail.com>
--001a113ef148e3bf45050e65f356
Content-Type: text/plain; charset=UTF-8

Thanks for your answer David. I understand that it's not as bad as I said.
But when there's several hundred of queries per pages it can be runned on a
dev environnement.

2015-02-06 3:50 GMT+01:00 David Metzler <[email protected]>:

> As a database developer (oracle, Postgres, MySQL, mssql), I can say that
> there are some distinct advantages to the entity value approach used by
> drupal.  I would not discard it out of hand just because you believe it
> will take too many tables.  For example, it makes queries across content
> types (e.g. calandars of multiple content types that have different numbers
> of fields in them) much more performative.
>
> Shameless plug: If you're a database developer and handy with SQL and are
> planning on building your own custom tables/entities then you might
> consider using http://drupal.org/project/forena
>
> Dave
>
> Sent from my iPad
>
> On Feb 5, 2015, at 1:39 AM, Nicolas <[email protected]> wrote:
>
>
> 2015-02-05 10:37 GMT+01:00 Muzaffer Tolga Ozses <[email protected]>:
>
>> If you don't want fields in your content type, feel free to leave related
>> parts out :) About entity, I don't know what you mean with that. Nodes are
>> also entities.
>
>
> I know node are entities. I search for an article explaining how to create
> a new content type (available from node/add/my-content-type), using
> entities, without field api.
>
>
>

--001a113ef148e3bf45050e65f356
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks for your answer David. I understand that it&#39;s n=
ot as bad as I said. But when there&#39;s several hundred of queries per pa=
ges it can be runned on a dev environnement.</div><div class=3D"gmail_extra=
"><br><div class=3D"gmail_quote">2015-02-06 3:50 GMT+01:00 David Metzler <s=
pan dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blan=
k">[email protected]</a>&gt;</span>:<br><blockquote class=3D"gmail_quote=
" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><=
div dir=3D"auto"><div>As a database developer (oracle, Postgres, MySQL, mss=
ql), I can say that there are some distinct advantages to the entity value =
approach used by drupal.=C2=A0 I would not discard it out of hand just beca=
use you believe it will take too many tables.=C2=A0 For example, it makes q=
ueries across content types (e.g. calandars of multiple content types that =
have different numbers of fields in them) much more performative. =C2=A0=C2=
=A0</div><div><br></div><div>Shameless plug: If you&#39;re a database devel=
oper and handy with SQL and are planning on building your own custom tables=
/entities then you might consider using <a href=3D"http://drupal.org/projec=
t/forena" target=3D"_blank">http://drupal.org/project/forena</a></div><div>=
<br></div><div>Dave</div><div><br>Sent from my iPad</div><div><br>On Feb 5,=
 2015, at 1:39 AM, Nicolas &lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt; wrote:<br><br></div><blockquote type=
=3D"cite"><div><div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=
=3D"gmail_quote">2015-02-05 10:37 GMT+01:00 Muzaffer Tolga Ozses <span dir=
=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">tolga@ozs=
es.net</a>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you don&#39;t w=
ant fields in your content type, feel free to leave related parts out :) Ab=
out entity, I don&#39;t know what you mean with that. Nodes are also entiti=
es.</blockquote><div><br></div><div>I know node are entities. I search for =
an article explaining how to create a new content type (available from node=
/add/my-content-type), using entities, without field api.=C2=A0</div></div>=
<br><br></div></div>
</div></blockquote></div></blockquote></div><br></div>

--001a113ef148e3bf45050e65f356--