WendelLana commented on issue #1004: URL: https://github.com/apache/age/issues/1004#issuecomment-1629878646
We can continue to use a separate table for each label, where the table name corresponds to the label name and each table has its own ID, however, these tables will only contain the vertex/edge IDs. Then utilize only the global vertex table (graph_name._ag_label_vertex) and global edge table (graph_name._ag_label_edge) to store the information of each vertex/edge (its properties and so on). At last, we should create two junction tables: one for vertices and one for edges. These junction tables will include the vertex/edge ID and its corresponding label ID, ordered by the vertex/edge ID. For instance, the junction table for vertices would resemble the following: vertex_id | label_id 6842625 | 1 6842625 | 4 6842626 | 1 6842626 | 2 -- 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: dev-unsubscr...@age.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org