questdb.io | official QuestDB website , database documentation | Frontend Framework library
kandi X-RAY | questdb.io Summary
kandi X-RAY | questdb.io Summary
This website is built using Docusaurus 2. Pages & components are written in TypeScript, the styles in vanilla CSS with variables using CSS Modules.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of questdb.io
questdb.io Key Features
questdb.io Examples and Code Snippets
Community Discussions
Trending Discussions on questdb.io
QUESTION
I'm looking into using QuestDB for a large amount of financial trade data.
I have read and understood https://questdb.io/docs/guides/importing-data but my case is slightly different.
- I have trade data for multiple instruments.
- For each instrument, the microsecond-timestamped data spans several years.
- The data for each instrument is in a separate CSV file.
My main use case is to query for globally time-ordered sequences of trades for arbitrary subsets of instruments. For clarity, the results of a query would look like
...ANSWER
Answered 2021-Jun-13 at 22:11As of 6.0 you can simply append the CSVs to same table one by one given the table has designated timestamp and partitioned it will work.
If your CSVs are huge I think batching them in transactions with few million rows will be better than offloading billions at once.
Depending of how much data you have and your box memory you need to partition in a way that single partition fits memory several times. So you choose if you want daily or monthly partitions.
Once you decide with partitioning you can speed up the upload if you able to upload day by day batches (or month by month) from all CSVs.
You will not need to rebuild the table every time you add an instrument, table will be rewritten automatically partition by partition when you insert records out of order.
QUESTION
Once I have an existing table in QuestDB, is there any way to check if the table has a designated timestamp and if yes, which column is it?
...ANSWER
Answered 2021-Apr-30 at 08:53There is no way as of 5.0.6 I believe. This is definitely a missing feature.
QUESTION
I am hoping to do something along the lines of pandas merge_asof
or QuestDB's ASOF JOIN
in Julia. Critically, I also need to apply a group-by operation.
I would be happy to use any of Julia's Table.jl
respecting tools. DataFrame's leftjoin
get's close, but requires exact key matches, and doesn't do grouping (as far as I can tell). SplitApplyCombine.jl's leftgroupjoin
allows you to pass in your own comparison function, but I don't quite see how to use that function to specify the "nearest less than" value, or "nearest greater than" value.
For a simple example where group-bys are not necessary, on two tables left
and right
, each with a column time
, I could use a function like
ANSWER
Answered 2021-Mar-15 at 07:17Here's one way of doing it in DataFrames - this is certainly not the peak of efficiency, but if your data is small enough that you can afford the first leftjoin
it might be good enough.
Start by joining in_sensor_FOV
onto sensor_pings
:
QUESTION
On a Questdb
table I made some queries that are working, but when I tried to apply a where
clause the field that has a timestamp type:
ANSWER
Answered 2021-Feb-28 at 22:06Your Timestamp_GMT
is probably not the designated timestamp of the table. Even though it's of type Timestamp
it can only be filtered as
QUESTION
I'm looking to create a dynamic WHERE
clause in QuestDB for something like the following example SQL:
ANSWER
Answered 2021-Mar-03 at 10:19This depends on what you're trying to achieve, but what might be useful is using coalesce()
which was added in release 5.0.6.1. The function is designed to work like the Postgres COALESCE
keyword and returns the first non-null argument. There are ways that this could be included in your statement, but it's useful if you want to set a default value for a column if it returns null:
QUESTION
How can I send influx line protocol messages to QuestDB from python? Should I be using a library or should I write to the socket? The node example looks like
...ANSWER
Answered 2021-Feb-22 at 16:22The Python equivalent for the example looks something like the following:
QUESTION
I want to import some data with curl
to the rest endpoint. I need to use a user defined schema described in the docs, but I have some issues with specifying timestamp format.
This is a minimal example of what I'm sending:
...ANSWER
Answered 2021-Jan-21 at 12:47When using the user-defined schema with TIMESTAMP types, you should be using pattern
instead of format in the schema query parameter, i.e.:
QUESTION
I am trying out QuestDb and it has Symbol column type. As far as I understand it's useful to store small rarely changed string values. At what point it is better to use a separate table for the strings and use an integer key instead? My simplified schema is 2 tables:
Instrument: ISIN, Name
Price: ISIN, PriceValue, Date
Instruments are limited but can grow up to 1m records over time. Should I use Symbol column for ISIN in Price or better of creating Integer Instrument Id and reference it instead?
...ANSWER
Answered 2021-Jan-08 at 15:18Internally Symbol is already stored as separate table. Although table appears to display String values for symbol columns internally column stores 32 bit int. For finances cases ISIN and other tickers should always be symbols. Symbols are optimised for ticker lookups, such as the one below to select entire time series for one day
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install questdb.io
This command generates static content into the build directory and can be served using any static contents hosting service. For that purpose, you can also use:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page