[openstack-dev] [Nova] questions on object/db usage

Dan Smith dms at danplanet.com
Thu Oct 23 19:01:42 UTC 2014


>            When I fix some bugs, I found that some code in
> nova/compute/api.py
>           sometimes we use db ,sometimes we use objects.... do we have
> any criteria for it? I knew we can't access db in compute layer code,
> how about others ? prefer object or db direct access? thanks

Prefer objects, and any remaining db.* usage anywhere (other than the
object code itself) is not only a candidate for cleanup, it's much
appreciated :)

--Dan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141023/153d8ffc/attachment.pgp>


More information about the OpenStack-dev mailing list