sungwy commented on code in PR #1185:
URL: https://github.com/apache/iceberg-python/pull/1185#discussion_r1767792939


##########
pyiceberg/table/snapshots.py:
##########
@@ -249,6 +241,9 @@ class Snapshot(IcebergBaseModel):
     summary: Optional[Summary] = Field(default=None)
     schema_id: Optional[int] = Field(alias="schema-id", default=None)
 
+    # Private attribute for caching the manifests
+    _manifest_cache: Optional[List[ManifestFile]] = PrivateAttr(default=None)

Review Comment:
   This looks promising @kevinjqliu 
   
   I know this is a regression from the intended optimization at the module 
level as suggested here: 
https://github.com/apache/iceberg-python/pull/787#discussion_r1632224368 but I 
don't think we have a better alternative 🙂 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to