Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C9558200B2B for ; Tue, 14 Jun 2016 05:03:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C808D160A61; Tue, 14 Jun 2016 03:03:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1AC2B160A3C for ; Tue, 14 Jun 2016 05:03:01 +0200 (CEST) Received: (qmail 38017 invoked by uid 500); 14 Jun 2016 03:03:01 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 37979 invoked by uid 99); 14 Jun 2016 03:03:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2016 03:03:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 25D04C1CBA for ; Tue, 14 Jun 2016 03:03:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id OqIhNzPyoOIn for ; Tue, 14 Jun 2016 03:02:57 +0000 (UTC) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7A2115FBB6 for ; Tue, 14 Jun 2016 03:02:57 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id w5so157968547oib.2 for ; Mon, 13 Jun 2016 20:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to; bh=l6oVFd7PSWverX4jva1voJT/cxmrn93wXw7VrtfPdvo=; b=C/T3+VpBltkeyeTG21jJP6cdJ0kb3g7pQqiWtv+nKl1UGIYkQkMLjRBBtCqKuz+JeK 4K2Xnmi1j4UDZaLybOFunIFV83d3Ci6P9fKIJ+HFFgrnD04IpN6h+Qcddhj8/OIyTNbS ndj49A4KWXQYiY6Rka9FMQLMkmGGSn/eKVv8qXmOtY4RhHiWX7xjHSLk5Vf7Ft9SEhwf iWPN/fWwVkPowsTTLpEgqRKN0vyyMbLZ425/kll5rLLBwwvMOELCFS4vLrt/wD0TRYBp QjHvDEAguH5qOYkfrlKkLJf8OWiEQphVwGJagyaJdIqIp+YlkpG24NltK/hqb8nHRVfQ ltOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to; bh=l6oVFd7PSWverX4jva1voJT/cxmrn93wXw7VrtfPdvo=; b=ZN5IRC0CRw1rlRThUKARLgRwm5v9pWVYL8Fh+45l4VhCw02mNmi2uTqcQZlSF5FRUy e0SuC4F+B0mfYwllTl0LFDGct2BTi/62HNxqKdJHGFLbBEWiORZ0hzSgv5GmiXNLZZJr eLQ28gzTaZvNj+eQRBMxEBVnDXRHUPq9N7fRjunjrPRESq9ZR0WhSzUaPw8ZygIR8jgG rCfEB8ETWGvBpI91lKxdPVnaFUXvsCUMfqSAyWwOSd89GfR6QJsyHaZvGJL6V0YXDeEx puaBMIi4tkOUZmctDlEMFc95mYqvGCJ2QT4rpTPjRuqP0bpOx+93M6QN1vsVArQDpcnJ R/vw== X-Gm-Message-State: ALyK8tLxJ72nwCKAVjVckAUOawPYQvziosh0MQxMKU6x3Y/MWW7C+711+Ua3OKMsJU90obnpfruEWJ+lW6iTuw== MIME-Version: 1.0 X-Received: by 10.202.55.198 with SMTP id e189mr7705213oia.85.1465873376662; Mon, 13 Jun 2016 20:02:56 -0700 (PDT) Received: by 10.202.235.19 with HTTP; Mon, 13 Jun 2016 20:02:55 -0700 (PDT) Received: by 10.202.235.19 with HTTP; Mon, 13 Jun 2016 20:02:55 -0700 (PDT) Reply-To: niclas@hedhman.org In-Reply-To: References: Date: Tue, 14 Jun 2016 11:02:55 +0800 Message-ID: Subject: Re: Large Scale Entity Store Database? From: Niclas Hedhman To: dev Content-Type: multipart/alternative; boundary=001a113ceea6e6e1350535343dc8 archived-at: Tue, 14 Jun 2016 03:03:03 -0000 --001a113ceea6e6e1350535343dc8 Content-Type: text/plain; charset=UTF-8 In Zest, storage/retrieval and indexing/query are separated concerns. (Disk is cheap) Just like it is on the world-wide web. Now, the relatively simple Entity Stores that are based on the MapEntitStore might be particularly wasteful with storage space, depending on the underlying engine. However, nothing stops you from creating a "native" ES for your favorite storage engine. The Indexing/Query systems are much more complex (compare a website's store/retrieve with Google's Search) and it is not trivial to make an indexing extension that is complete (native queries are available as a compromise). In Zest 2.x and earlier, the default is to index all properties, and you can turn some of them off. In 3.x we intend to change the default to off, and you indicate what needs indexing. Final note, the requirements on the entity stores are that any "unknown" state is preserved so that an update will not modify such state. This is due to the fact that entities of the same identity can have more than one (possibly incompatible) type. This complicates traditional ORM techniques quite a bit. Cheers Niclas On Jun 14, 2016 09:06, "zhuangmz08" wrote: > Hi, I dig into the Postgres table, and I find that entities are actually > stored as JSON-format strings, which seems to use SQL database as a > Document database. I'm wondering how efficient queries are achieved? I'm > going to insert and query millions of entities. Have you ever tested the > performance? Should I use Mongo-support Entity Store instead? Thanks a lot. --001a113ceea6e6e1350535343dc8--