Pometry / Raphtory

Scalable graph analytics database powered by a multithreaded, vectorized temporal engine, written in Rust
https://raphtory.com
GNU General Public License v3.0
310 stars 55 forks source link

Features/cached graphs #1656

Open iamsmkr opened 3 weeks ago

iamsmkr commented 3 weeks ago

What changes were proposed in this pull request?

#1649

Why are the changes needed?

Same as above

Does this PR introduce any user-facing change? If yes is this documented?

No

How was this patch tested?

Uni, integration and manual tests

Issues

_If this resolves any issues, please link to them here, the format is a KEYWORD followed by @__ KEYWORDS available are close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved. Please delete this text before creating your PR

Are there any further changes required?

No

miratepuffin commented 1 week ago

After discussion, we should tidy the APIs to provide the following:

server = RaphtoryServer(working_dir="/graphs",port=1736,config = ...)

server.start()

server.stop()

server.wait()

server.run()

c=server.get_client()

c=RaphtoryClient("localhost:1736")

c.send_graphs(hashmap_of_graphs,overwrite=True,namespace="ben")

c.load_from_path(path_to_folder_of_graphs,overwrite=True,namespace="shivam")

c.query(...)
iamsmkr commented 1 week ago

After discussion, we should tidy the APIs to provide the following:

server = RaphtoryServer(working_dir="/graphs",port=1736,config = ...)

server.start()

server.stop()

server.wait()

server.run()

c=server.get_client()

c=RaphtoryClient("localhost:1736")

c.send_graphs(hashmap_of_graphs,overwrite=True,namespace="ben")

c.load_from_path(path_to_folder_of_graphs,overwrite=True,namespace="shivam")

c.query(...)

Implemented this leaving the namespace argument which we will address once load is sorted