How many table accesses caused by this expression?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: How many table accesses caused by this expression?
- From: 孙世龙 sunshilong <sunshilong369@...>
- Date: 2020年10月11日 17:20:12 +0800
Hi, list
How many table accesses caused by this expression:
zip = company and company.director and
company.director.address and
company.director.address.zipcode
As per the book(programming in Lua, 4th edition), the answer is 6.
Why?
For 0+1+2+3?
Why "company" does not perform a table access?
Could somebody shed some light on this question?
Best regards.
Sunshilong