Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update index after importing from files #2136

Closed
xuan2orange opened this issue Dec 2, 2024 · 4 comments
Closed

How to update index after importing from files #2136

xuan2orange opened this issue Dec 2, 2024 · 4 comments
Labels
question Further information is requested

Comments

@xuan2orange
Copy link

I used the load_labels_from_file method to import node data, but the index is not updated automatically, and when I use the Where condition query, the data cannot be queried.
What am I going to do?
Thanks.

@xuan2orange xuan2orange added the question Further information is requested label Dec 2, 2024
@MuhammadTahaNaveed
Copy link
Member

@li2012xuan You can use the REINDEX command.

To reindex the whole graph/schema, use REINDEX SCHEMA <graph_name>, or if you want to reindex specific node/edge label, use REINDEX TABLE <node/edge label>.

@xuan2orange
Copy link
Author

xuan2orange commented Dec 2, 2024

@li2012xuan You can use the REINDEX command.

To reindex the whole graph/schema, use REINDEX SCHEMA <graph_name>, or if you want to reindex specific node/edge label, use REINDEX TABLE <node/edge label>.

Thanks for your reply, that is worked for me.
But this command takes a long time, is there any other way to import large amounts of data and ensure index consistency?

@MuhammadTahaNaveed
Copy link
Member

MuhammadTahaNaveed commented Dec 2, 2024

this command takes a long time, is there any other way to import large amounts of data and ensure index consistency?

@li2012xuan As of now, it isn't supported by age. However, PR #2117 addresses the issue of load_labels_from_file/load_edges_from_file not updating the indexes.

@xuan2orange
Copy link
Author

this command takes a long time, is there any other way to import large amounts of data and ensure index consistency?

@li2012xuan As of now, it isn't supported by age. However, PR #2117 addresses the issue of load_labels_from_file/load_edges_from_file not updating the indexes.

Thanks, looking forward to the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants