>            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 :)


Attachment: signature.asc
Description: OpenPGP digital signature

OpenStack-dev mailing list

Reply via email to