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

Cache #44

Open
Anjaligk1990 opened this issue Jun 19, 2023 · 1 comment
Open

Cache #44

Anjaligk1990 opened this issue Jun 19, 2023 · 1 comment

Comments

@Anjaligk1990
Copy link

How to enable in memory caching in Cogdb.? As of now when it is compared with other databases time taken for fetching data it more

@arun1729
Copy link
Owner

Currently there is one level of caching at the storage layer that is enabled by default:

def __init__(self, graph_name, cog_home="cog_home", cog_path_prefix=None, enable_caching=True):

It is not a "full" in-memory cache since it only speeds up the retrieval of records from disk (which is also the slowest step in the retrieval process) but not the index lookup.

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

No branches or pull requests

2 participants