I have code as below where table data is captured in set(cur). Is there any way to find the space occupied by this variable in linux/unix? (Memory or buffer space)
cur.execute("select A , B , C from DeptTable")
dept_entries = set(cur)
cur.execute("select A , B , C from EmployeeTable where EmplName in ('A','B')")
for empl in cur:
if empl in dept_entries:
print(empl, 'Yes')
else:
print(empl, 'No')