Questions tagged [monetdb]

MonetDB is an open-source implementation of a column-oriented database. It is focused on analytical applications on a main memory resident database. MonetDB is a relational database and provides an SQL top-level interface. It is actively developed at CWI in Amsterdam, The Netherlands.

441 questions
4
votes
1 answer

How to discover the columns for a given index or key in MonetDB

MonetDB seems to support a fairly comprehensive set of system catalog views in order to discover the schema structure of the database. Unfortunately, I can't seem to find a SQL query that will obtain the set of columns for a given key or index. …
N8allan
  • 2,138
  • 19
  • 32
3
votes
2 answers

how to create a BAT file to be used in monetdb bulk load from a Java program

I have a file with a list of string (one cloumn). File example sdfsdfsdf hfhfhfghf dfgdggdfg pookokkoo base on the documentation on monetdb web site, I have to create a BAT file. How do I convert my file with strings into a BAT file ready to be…
Federico
  • 5,438
  • 5
  • 39
  • 47
3
votes
1 answer

how to join tables on cases where none of function(a) in b

Say in MonetDB (specifically, the embedded version from the "MonetDBLite" R package) I have a table "events" containing entity ID codes and event start and end dates, of the format: | id | start_date | end_date | | 1 | 2010-01-01 | 2010-03-30…
anon
  • 33
  • 4
3
votes
2 answers

How to improve query performance on a single node in MonetDB?

I've installed the latest (MonetDB 5 server v11v.27.5 "Jul2017-SP1") on Windows 2012 Server and I'm trying to query large table 1,4 billion rows in a reasonable time 2-3s. Is this even possible with MonetDB? What could I do to improve the…
Tomáš Repík
  • 145
  • 2
  • 10
3
votes
4 answers

Database recommendation

I have a collection of data that looks as follows: id name c1 c2 c3 c4 ... c50 ----------------------------------------------- 1 string1 0.1 0.32 0.54 -1.2 ... 2.3 2 string2 0.12 0.12 -0.34 2.45 ... …
Brett
  • 11,637
  • 34
  • 127
  • 213
3
votes
2 answers

How to execute a query string in MonetDB

I'm attempting to declare a query string to execute in MonetDB. The documentation is not clear if this is possible, but other engines allow this functionality (such as MySQL and MS SQL Sever). Trying the following execute 'select * from…
3
votes
2 answers

How can I EXPLAIN several consecutive queries without executing them?

Suppose I have a pair of arbitrary SQL queries, each one depending upon the former ones, e.g. CREATE VIEW v1 ( c3 ) AS SELECT c1 + c2 FROM t1; SELECT sum(c3) FROM v1; DROP VIEW v1; (but note I am not asking about these specific queries - this is…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
3
votes
2 answers

MonetDB bulk load with auto increment

I am trying to load csv files into monetdb table(s) with auto increment PK/Id columns using copy into from file.... table has auto increment PK column. table has more columns than incoming csv files. csv file doesnt have Pk/Id column. Is…
Azar
  • 61
  • 6
3
votes
1 answer

MonetDB - How to call .SQL files from within SQL files?

How can I run .SQL files from other .SQL files using MonetDB? I went through the whole documentation but had no success finding it. For instance, in MySql I could do something like parent.sql use mydatabase; source child1.sql source…
rafaelc
  • 57,686
  • 15
  • 58
  • 82
3
votes
1 answer

monetdb: export query result

How to export monetdb query result (e.g. to csv file)? Manual says: Copy into File The COPY INTO command with a file name argument allows for fast dumping of a result set into an ASCII file. The file must be accessible by the server and a full…
golazo
  • 221
  • 1
  • 11
3
votes
1 answer

SQL query using GROUP BY with standard deviation?

I am having some issues with the standard deviation function (stddev_samp in MonetDB specifically). I tried the following queries without success: select industry, avg(marketcap) as industryavg, stddev_samp(marketcap) as industrysd from…
Gadesxion
  • 391
  • 2
  • 6
  • 18
3
votes
2 answers

How to use JSON in MonetDB

MonetDB documentation says, that JSON is supported in MonetDB, but I can`t find any example. When I try to implement this query in MonetDB client: json.filter({ "store": { "bicycle": { "color": "red", "price": 19.95 …
hjortron
  • 329
  • 1
  • 13
3
votes
1 answer

Syntax errors whilst creating a table in MonetDB

This is driving me mad and I'm at the point where I'm thinking I must just be missing something very obvious. We are setting up a MonetDB environment with SQiurrel. I though the challenge would be wiring that all up and getting the drivers to work,…
1zebedee23
  • 110
  • 7
3
votes
1 answer

Starting database ... failed in MonetDB

I tried to start a DB after creating it in MonetDB, but I got this error: starting database 'sf1'... FAILED start: starting 'sf1' failed: database 'sf1' appears to shut itself down after starting, check monetdbd's logfile for possible hints Do you…
Nooshin
  • 943
  • 1
  • 9
  • 24
3
votes
1 answer

Can't connect to a local database using Monetdb.R

I'm trying to set a local connection to a database using Monetdb.R, but for some reason it is not working. I'm using the latest version of monetdb (MonetDB5 64 bits "Jan2014-SP3", 2014-07-25 release) in a Windows 7. Here it is a short reproducible…
RogerioJB
  • 355
  • 1
  • 8
1
2
3
29 30