Franco Almonacid
03/13/2023, 2:17 PM7.0.1
and converted our tables to WAL tables. Before that we could query the inserted data almost immediately but after changing to WAL tables we have to wait several minutes to see the data, similar to having a high commit lag.
The only way we found to fix this is going back to non-WAL tables, is there something else we can do?Brandon E.
03/13/2023, 3:24 PMJoão Calapez
03/13/2023, 6:06 PMIzac
03/13/2023, 7:50 PMNicolas Hourcard
03/14/2023, 10:25 AMLuiz Otavio
03/14/2023, 3:42 PMFranco Almonacid
03/14/2023, 5:40 PMDETACH
a partition with this query:
ALTER TABLE binance_dc DETACH PARTITION LIST '2023-03-13';
and I get this error:
could not detach partition [table=binance_dc, detachStatus=DETACH_ERR_ACTIVE, partitionTimestamp=2023-03-13T00:00:00.000Z, partitionBy=DAY]
also no error message in the questdb logsFranco Almonacid
03/14/2023, 5:45 PMFranco Almonacid
03/14/2023, 5:46 PM2023-03-14T17:45:29.125713Z C i.q.c.h.p.JsonQueryProcessorState [3009] error [q=`ALTER TABLE binance_dc DETACH PARTITION LIST '2023-03-13';`, msg=`could not detach partition [table=binance_dc, detachStatus=DETACH_ERR_ACTIVE, partitionTimestamp=2023-03-13T00:00:00.000Z, partitionBy=DAY]`, errno=-100]
Andy Beyer
03/14/2023, 5:48 PMFranco Almonacid
03/14/2023, 8:11 PMorder by
doesn't work, here is an example
SELECT * FROM binance_dc WHERE symbol= 'ETHUSDT' AND timestamp IN '2023-02-10' ORDER BY timestamp DESC;
Franco Almonacid
03/14/2023, 8:11 PMEXPLAIN
queryalex.b
03/16/2023, 12:41 PMSteven Aldinger
03/17/2023, 5:11 AMmax txn-inflight limit reached [txn=5556389, min=5540005, size=16384]
errors on 6.6.1
. we found a reference to it but from 2021 saying to delete the _txn_scoreboard
file in the table directory. is that still the recommended solution?Henri Asseily
03/17/2023, 7:04 AMNewskooler
03/17/2023, 8:28 AMquestdb
python library on a Mac M1.
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[7], line 21
19 from research.pnl.order import Order
20 from research.pnl.portfolio import Portfolio
---> 21 from questdb.ingress import Sender
22 from questdb_mb.data_services import get_tables
23 from <http://research.io|research.io> import load_time_series, remove_table
ImportError: dlopen(/Users/user/Software/python/virtual/mb/lib/python3.11/site-packages/questdb/ingress.cpython-311-darwin.so, 0x0002): tried: '/Users/user/Software/python/virtual/mb/lib/python3.11/site-packages/questdb/ingress.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/user/Software/python/virtual/mb/lib/python3.11/site-packages/questdb/ingress.cpython-311-darwin.so' (no such file), '/Users/user/Software/python/virtual/mb/lib/python3.11/site-packages/questdb/ingress.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
Ido Michael
03/17/2023, 7:01 PMSara Tavares
03/17/2023, 11:23 PMSM
03/18/2023, 12:08 AMpsycopg2.DatabaseError: invalid constant: timestamptz
LINE 1: ... timestamp <= '2023-03-17T19:55:46.342000+00:00'::timestampt...
Do I need to convert my Python datetimes into something else before using them in QuestDB queries?
Edit:
This is solved now. Seems like QuestDB needs datetimes to be naive and in utc, so what I did before using datetimes to filter rows in psycopg2 is the following (dt is a datetime object with some valid timezone):
dt = dt.astimezone(pytz.timezone("UTC")).replace(tzinfo=None)
SM
03/19/2023, 6:44 AMAndy Beyer
03/21/2023, 12:08 PMORDER BY
in queries:
My tables have timestamp
as the designated timestamp column
If I run this query:
select * from '<my-table>' where _timestamp_ > '2023-01-01T00:00:00Z' order by _timestamp_ desc;
I get 4214
results despite the fact that data is being regularly added to the table
When I add a LIMIT
clause to a desc
sorted query:
select * from '<my-table>' where _timestamp_ > '2023-01-01T00:00:00Z' order by _timestamp_ desc limit 100000;
then I get 0 results
If I do either of the above with order by timestamp asc
I get the full results I am expected (~750000 results with no limit, or the full 100,000 results with the limit)
Is there something special about sorting using time in descending order?Newskooler
03/21/2023, 2:08 PMJohn M.
03/21/2023, 3:26 PMDavid Bellizzi
03/21/2023, 6:22 PMAndy Beyer
03/22/2023, 1:49 PMBrandon E.
03/22/2023, 2:14 PMJetsukda Janthornthao
03/23/2023, 3:39 AMUPSERT
in QuestDB?Nicolas Hourcard
03/23/2023, 9:52 AMJohn M.
03/24/2023, 6:04 PMMichael
03/26/2023, 5:30 AMMichael
03/26/2023, 5:30 AM