Configuring data-sources: Memgraph
Please check for supported Memgraph versions in our compatibility matrix.
Configuration
To edit the Memgraph data-source configuration,
you can either use the Web user-interface
or edit the configuration file located at linkurious/data/config/production.json
.
Example configuration:
{
"dataSources": [
{
"graphdb": {
"vendor": "memgraph",
"url": "bolt+s://18.150.10.214",
"user": "my-memgraph-user",
"password": "my-memgraph-password"
},
"index": {
"vendor": "elasticsearch",
"host": "127.0.0.1",
"port": 9201
}
}
]
}
Supported graphdb
options with Memgraph:
url
(required): URL of the Memgraph server (Bolt:bolt://
orbolt+s://
)databaseName
(optional): Name of the database to be connecteduser
(optional): Memgraph user (if credentials are enabled)password
(optional): Memgraph password (if credentials are enabled)latitudeProperty
(optional): Name of the node property to use for latitude (used in geo mode)longitudeProperty
(optional): Name of the node property to use for longitude (used in geo mode)ignoredEdgeTypePrefixes
(optional): List of edge type prefixes to be excluded in the schema samplinguseSchemaCacheAndAutoIndexes
(optional): When enabled, Linkurious Enterprise will use the schema metadata cache, node categories and edge types indexes to speed up the schema sampling. This option is recommended for large graph databases in production and requires Memgraph 2.16+.
ℹ️ IMPORTANT: When the
useSchemaCacheAndAutoIndexes
, Memgraph 2.16+ is required and the following options must be set.For Memgraph 2.16 to 2.20:
--storage-enable-schema-metadata=true
--storage-mode=IN_MEMORY_TRANSACTIONAL
--storage-automatic-label-index-creation-enabled=true
--storage-automatic-edge-type-index-creation-enabled=true
For Memgraph 2.21+:
--schema-info-enabled=true
--storage-mode=IN_MEMORY_TRANSACTIONAL
--storage-automatic-label-index-creation-enabled=true
--storage-automatic-edge-type-index-creation-enabled=true
We strongly recommend you to also enable the following Memgraph options:
--storage-enable-edges-metadata=true
: Necessary to make getting edges by ID scalable.
Memgraph cloud
Linkurious Enterprise allows using Memgraph instances running on Memgraph cloud.