Hello, and congratulation on the great project.
I am evaluating the possible use of Dgraph for a solution within my company.
I started from a JSON Wikidata dump, simplified the structure a bit by removing references, using English data only, and keeping all the connecting properties while removing many scalar ones, as they are not interesting to us. The final result has around 100M vertices and more than 1B edges; I imported using bulk mode.
I deployed a single physical (on-premise) machine cluster with three zero and six alpha nodes, split in two groups, using Docker; the machine has 48 cores and 64GB RAM. Now, running a term query on a property called label (schema entry: string @index(term) ) I get unacceptable slowness (see timing below, 1â 41"). I am also noting that, while running the query, the system seems to be mostly idle, check the CPU metric after the command.
I am adding some details below; if this is interesting for you, I can provide the entire database (bulk loaded), as well as my docker-compose.yml, just let me know.
Thanks so much, have a great day
giuseppe
Details
root@d055ae8f9bc8:/data# dgraph version
Dgraph version : v21.03.1
Dgraph codename : rocket-1
Dgraph SHA-256 : a00b73d583a720aa787171e43b4cb4dbbf75b38e522f66c9943ab2f0263007fe
Commit SHA-1 : ea1cb5f35
Commit timestamp : 2021-06-17 20:38:11 +0530
Branch : HEAD
Go version : go1.16.2
jemalloc enabled : true
time curl -X POST http://localhost:28080/query -H âContent-Type: application/dqlâ -d â{ var( func: allofterms(label, âGeneral
Motors Companyâ) ) { A as QID } var( func: allofterms(aliases, âGeneral Motors Companyâ) ) { B as QID } WD( func: uid(A,
B) ) { name label aliases description P31 { QID } P279 { QID } } }â
{âdataâ:{âWDâ:[{ânameâ:âQ29570â,âlabelâ:âChevroletâ,âaliasesâ:[âChevyâ,âChevrolet Division of General Motors Company y Nahuelito Gimenezâ],âdescriptionâ:âAmerican automobile division of GMâ,âP31â:[{âQIDâ:âQ10429667â},{âQIDâ:âQ334453â},{âQIDâ:âQ786820â}]},{ânameâ:âQ81965â,âlabelâ:âGeneral Motorsâ,âaliasesâ:[âGMâ,âGeneral Motors Corporationâ,âGeneral Motors Company, LLCâ,âGMCâ],âdescriptionâ:âautomotive manufacturing corporation based in Detroit, Michigan, USAâ,âP31â:[{âQIDâ:âQ891723â},{âQIDâ:âQ21980538â},{âQIDâ:âQ786820â}]},{ânameâ:âQ67604297â,âlabelâ:âPilot Life Insurance Company, Petitioner v. Everate W. Dedeaux [Case 85-1043] / Metropolitan Life Insurance Company, Petitioner v. Arthur Taylor [Case 85-686] / General Motors Corporation, Petitioner v. Arthur Taylor. [Case 85-688 (NAID 118974763)â,âdescriptionâ:âitem in the National Archives and Records Administrationâs holdingsâ,âP31â:[{âQIDâ:âQ18593264â}]},{ânameâ:âQ19035456â,âlabelâ:âPick Manufacturing Company v. General Motors Corporationâ,âP31â:[{âQIDâ:âQ2334719â}]},{ânameâ:âQ59356336â,âlabelâ:â224 West 57th Streetâ,âaliasesâ:[âDemarest and Peerless Company Buildingâ,âDemarest \u0026 Peerless Buildingâ,âGeneral Motors Buildingâ,âA. T. Demarest \u0026 Company Buildingâ,âArgonaut Buildingâ,âPeerless Motor Car Company Buildingâ],âdescriptionâ:âCommercial building in Manhattan, New Yorkâ,âP31â:[{âQIDâ:âQ1021645â}]},{ânameâ:âQ26349054â,âlabelâ:âHHE determination report no. HHE-73-73-143, Inland Manufacturing Company, General Motors Corporation, Dayton, Ohioâ,âdescriptionâ:âfield studyâ,âP31â:[{âQIDâ:âQ1402850â}]},{ânameâ:âQ67604509â,âlabelâ:âEastman Kodak Company, Petitioner v. Image Technical Services, Inc., et al. [Case 90-1029] / General motors Corporation, et al., Petitioners v. Evert Romein, et al. [Case 90-1390] / United States, Petitioner v. R. L. C. [Case 90-1 (NAID 118974953)â,âdescriptionâ:âitem in the National Archives and Records Administrationâs holdingsâ,âP31â:[{âQIDâ:âQ18593264â}]}]},âextensionsâ:{âserver_latencyâ:{âparsing_nsâ:928457,âprocessing_nsâ:101801347836,âencoding_nsâ:145195,âassign_timestamp_nsâ:724950,âtotal_nsâ:101803227071},âtxnâ:{âstart_tsâ:1400},âmetricsâ:{ânum_uidsâ:{"":0,âP279â:7,âP31â:7,âQIDâ:16,"_total":58,âaliasesâ:7,âdescriptionâ:7,âlabelâ:7,ânameâ:7}}}}
0.01s user 0.02s system 0% cpu 1:41.86 total