README.md 6.8 KB
Newer Older
V
Vlad Ilyushchenko 已提交
1
<h4 align="center">
2
  <img src="https://raw.githubusercontent.com/questdb/questdb/master/ui/assets/images/logo-readme.jpg"/>
V
Vlad Ilyushchenko 已提交
3
</h4>
V
Vlad Ilyushchenko 已提交
4

V
Vlad Ilyushchenko 已提交
5
<p align="center">
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  <a href="https://github.com/questdb/questdb/blob/master/LICENSE.txt">
    <img src="https://img.shields.io/github/license/questdb/questdb" />
  </a>
  <a href="https://www.codacy.com/app/bluestreak/nfsdb">
    <img src="https://api.codacy.com/project/badge/grade/83c6250bd9fc45a98c12c191af710754" />
  </a>
  <a href="https://circleci.com/gh/questdb/questdb">
    <img src="https://img.shields.io/circleci/build/github/questdb/questdb/master?token=c019f9fac8d84c0fa4896447d6073504a830e099" />
  </a>
  <a href="https://github.com/questdb/questdb/releases/download/4.2.0/questdb-4.2.0-bin.tar.gz">
    <img src="https://img.shields.io/github/downloads/questdb/questdb/total" />
  </a>
  <a href="https://search.maven.org/search?q=g:org.questdb">
    <img src="https://img.shields.io/maven-central/v/org.questdb/core" />
  </a>
  <a href="https://serieux-saucisson-79115.herokuapp.com/">
    <img src="https://serieux-saucisson-79115.herokuapp.com/badge.svg" />
  </a>
</p>

<div align="center">

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
29
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
30 31
<!-- ALL-CONTRIBUTORS-BADGE:END -->
</div>
V
Vlad Ilyushchenko 已提交
32 33

## What is QuestDB
V
Vlad Ilyushchenko 已提交
34

35 36 37
QuestDB is an open-source NewSQL relational database designed to process
time-series data, faster. Our approach comes from low-latency trading; QuestDB’s
stack is engineered from scratch, zero-GC Java and dependency-free.
J
j1897OS 已提交
38

39 40 41 42
QuestDB ingests data via HTTP, PostgreSQL wire protocol, Influx line protocol or
directly from Java. Reading data is done using SQL via HTTP, PostgreSQL wire
protocol or via Java API. The whole database and console fits in a 3.5Mb
package.
43

V
Vlad Ilyushchenko 已提交
44
## Project goals
V
Vlad Ilyushchenko 已提交
45

46 47
- Treat time-series as first class citizen within a relational database
  framework.
V
Vlad Ilyushchenko 已提交
48

49 50
- Minimise hardware resources through software optimisation. Don’t waste CPU
  cycles, memory nor storage.
V
Vlad Ilyushchenko 已提交
51

T
Tancrede 已提交
52
- Be a reliable and trustworthy store of critical data.
V
Vlad Ilyushchenko 已提交
53

54 55
- Low friction operation. Empower developers with SQL. Simplify every database
  interaction.
V
Vlad Ilyushchenko 已提交
56

57 58
- Operate efficiently at both extremes: allow users to prioritise performance
  over data loss, and vice versa.
V
Vlad Ilyushchenko 已提交
59 60

- Be both embedded and standalone.
V
Vlad Ilyushchenko 已提交
61

T
Tancrede 已提交
62 63
## Getting Started

64 65 66 67
See our [My First Database](https://www.questdb.io/docs/myFirstDatabase)
tutorial. The easiest way to get started is to play with our web
[console](https://www.questdb.io/docs/usingWebConsole). This will allow you to
import and query data using an intuitive interface.
T
Tancrede 已提交
68

69 70 71
You may also take a look at our
[storage model](https://www.questdb.io/docs/storageModel). In short, we are a
column-oriented database, which partitions data by time intervals.
T
Tancrede 已提交
72

73 74
You can find our documentation
[here](https://www.questdb.io/docs/documentationOverview)
T
Tancrede 已提交
75 76 77 78 79

## Support / Contact

- [Slack Channel](https://join.slack.com/t/questdb/shared_invite/enQtNzk4Nzg4Mjc2MTE2LTEzZThjMzliMjUzMTBmYzVjYWNmM2UyNWJmNDdkMDYyZmE0ZDliZTQxN2EzNzk5MDE3Zjc1ZmJiZmFiZTIwMGY)

T
Tancrede 已提交
80
## Roadmap
T
Tancrede 已提交
81

82
Our roadmap is [here](https://github.com/questdb/questdb/projects/2)
T
Tancrede 已提交
83

84 85
## Building from source

86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
### Pre-requisites

- Operating system - **x86-64**: Windows, Linux, FreeBSD and OSX / **ARM
  (AArch64/A64)**: Linux
- Java 8 64-bit. We recommend Oracle Java 8, but OpenJDK8 will also work
  (although a little slower)
- Maven 3 (from your package manager on Linux / OSX
  ([Homebrew](https://github.com/Homebrew/brew)) or
  [from the jar](https://maven.apache.org/install.html) for any OS)
- Node.js 12 / npm 6 (to manage your Node.js versions we recommend
  [nvm](https://github.com/nvm-sh/nvm) for OSX/Linux/windows WSL, and
  [nvm-windows](https://github.com/coreybutler/nvm-windows) for Windows) -
  OPTIONAL

> Java versions above 8 are not yet supported. It is possible to build QuestDB
> with Java 11, but this requires backward incompatible changes. If your java
> version is above 8 you can download & install JDK8 and use the absolute path
> to the java executable instead of "`java`".
V
Vlad Ilyushchenko 已提交
104

V
Vlad Ilyushchenko 已提交
105
### Building & Running
106

107 108
```bash
git clone git@github.com:questdb/questdb.git
V
Vlad Ilyushchenko 已提交
109 110
cd questdb

111
# Check the java version, the output should be similar to:
V
Vlad Ilyushchenko 已提交
112 113 114 115 116
#
# java version "1.8.0_212"
# Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
# Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)
java -version
117

J
j1897OS 已提交
118
# remove 'skipTests' if you want to run all tests (3000+ unit tests, 3-5 mins)
V
Vlad Ilyushchenko 已提交
119
mvn clean package -DskipTests
120

121
# replace <root_dir> with the actual directory name, example "out"
V
Vlad Ilyushchenko 已提交
122 123
mkdir <root_dir>

124
java -cp core/target/core-4.2.1-SNAPSHOT.jar io.questdb.ServerMain -d <root_dir>
V
Vlad Ilyushchenko 已提交
125
```
126

127 128 129 130 131
QuestDB will start an HTTP server with the web console available at
[localhost:9000](http://localhost:9000). Additionally, a PostgreSQL server will
be started and available on port 8812, the default login credentials are
`admin`/`quest`. Both the HTTP and PostresSQL servers reference the database in
`<root_directory>/db`.
V
Vlad Ilyushchenko 已提交
132

T
Tancrede 已提交
133
## Contribution
V
Vlad Ilyushchenko 已提交
134

135 136 137
Feel free to contribute to the project by forking the repository and submitting
pull requests. Please make sure you have read our
[contributing guide](https://github.com/questdb/questdb/blob/master/CONTRIBUTING.md).
138 139 140

## Contributors ✨

141 142
Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)):
143 144 145 146 147 148

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tr>
149
    <td align="center"><a href="https://github.com/clickingbuttons"><img src="https://avatars1.githubusercontent.com/u/43246297?v=4" width="100px;" alt=""/><br /><sub><b>clickingbuttons</b></sub></a><br /><a href="https://github.com/questdb/questdb/commits?author=clickingbuttons" title="Code">💻</a> <a href="#ideas-clickingbuttons" title="Ideas, Planning, & Feedback">🤔</a> <a href="#userTesting-clickingbuttons" title="User Testing">📓</a></td>
150
    <td align="center"><a href="http://sirinath.com/"><img src="https://avatars2.githubusercontent.com/u/637415?v=4" width="100px;" alt=""/><br /><sub><b>Suminda Sirinath Salpitikorala Dharmasena</b></sub></a><br /><a href="#ideas-sirinath" title="Ideas, Planning, & Feedback">🤔</a></td>
151
    <td align="center"><a href="https://github.com/tonytamwk"><img src="https://avatars2.githubusercontent.com/u/20872271?v=4" width="100px;" alt=""/><br /><sub><b>tonytamwk</b></sub></a><br /><a href="https://github.com/questdb/questdb/commits?author=tonytamwk" title="Code">💻</a> <a href="#userTesting-tonytamwk" title="User Testing">📓</a></td>
152 153 154 155 156 157 158
  </tr>
</table>

<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

159 160 161
This project follows the
[all-contributors](https://github.com/all-contributors/all-contributors)
specification. Contributions of any kind welcome!