r/databases • • Sep 20 '23

Navigating Data Seas: A Pokémon-Inspired Database Pagination Odyssey

Thumbnail medium.com
1 Upvotes

r/databases • • Aug 10 '23

Which disk-resident database to choose for massive dictionary of unique strings?

1 Upvotes

I have a simple search program that works on top of huge log files. 100Gb of text logs is not uncommon. I am trying to figure out which db to use for efficient (compressed) storage of terms extracted from text files. I am speaking of 100+Ms unique strings to store (uncompressed 4+Gb), It is not desired to put it all into main memory as the program is secondary and should not interfere much.

I analyzed a few KV storages, but these do not fit exactly the bill as they assume both keys and values and usually they compress values. In my keys I have only values(with no keys).

So far I see potential solution in using log-structured merge trees, where it appends data to files and later compacted/sorted/compressed in small chunks. However I could not find a good values-only implementation for that.

I'd love to get hints about the proper storage for that.


r/databases • • Jul 31 '23

We created an open-source semantic search package on top of PostgreSQL

1 Upvotes

Hey everyone! A few months ago my friend and I were working on a sustainability software project and wanted to use semantic search/vector search to help improve search accuracy for materials in our Postgres database.

We found it difficult to do well with standard vector databases and so we ended up making a nice open-source package to layer semantic search on top of Postgres with just a few lines of code. It supports Python backends right now, always stays in sync with Postgres via Kafka, doubles as a vector store, and can be deployed anywhere.

We wrote some documentation on it and are curious to see what people do with it! If you encounter any issues or have exciting ideas, feel free to open an issue or contribute alongside us to make it better! Any feedback is warmly appreciated


r/databases • • Jul 26 '23

Low support db for end users

1 Upvotes

I'm a veteran IT professional with experience developing and supporting financial applications in Oracle, SQL Server and Sybase. As part of my semi retirement plan, I'm helping some small businesses (ie no in house IT departments) take better advantage of the various applications and platforms they use for their business by seeing how to automate or streamline their processes.

One tool that I can see being helpful is having a database to consolidate feeds from their applications and tools. I've discovered PostgreSQL in the last few years and am very taken with how powerful it is. But, I think it's not practical for the business user to be able to support it once I'm not in the scene.

Is there anything else out there that can be flexible but still can be maintained by non-IT staff?

Thx.


r/databases • • Apr 11 '20

Personalized scoring on documents returning per user

1 Upvotes

I’m looking for some general information and some guidance on what to look at first. I’m looking to create a solution that would allow for uniquely ordered results per user based on criteria they set. The thing that seems closest to what I want is Elasticsearch and it’s scoring and function score method. The key is that both the amount of users and the amount of data both can be quite large and I’m concerned about scaling. Any suggestions on what I should look at or is Elasticsearch the best answer?


r/databases • • Apr 10 '20

Control Invoker Rights Privileges for PL/SQL Code in Oracle Database 12c Release 1

Thumbnail
dbexamstudy.blogspot.com
1 Upvotes

r/databases • • Apr 07 '20

Qualified Expressions (Populating Record Types and Associative Arrays) in PL/SQL in Oracle Database 18c

Thumbnail
dbexamstudy.blogspot.com
1 Upvotes

r/databases • • Mar 30 '20

Oracle Database 19c Installation On Oracle Linux 8 (OL8)

Thumbnail
dbexamstudy.blogspot.com
1 Upvotes

r/databases • • Mar 26 '20

Blockchain tables in Oracle Database 20c

Thumbnail
dbexamstudy.blogspot.com
1 Upvotes

r/databases • • Mar 25 '20

Working with SQL Cursors

Thumbnail
dbexamstudy.blogspot.com
1 Upvotes

r/databases • • Mar 23 '20

Oracle 1Z0-063 Certification | Become a DBA

Thumbnail
dbexamstudy.blogspot.com
1 Upvotes

r/databases • • Feb 25 '20

What database to use?

1 Upvotes

I'm a newbie into databasing and want to make a database to store text files such that you can access them from a 'central' page.

I have not been able to find a piece of software which appears to meet my requirements and so have turned to this subreddit for help. What software (free if possible) would be a good choice?

Thanks in advance


r/databases • • Jan 04 '20

For an ecommerce project what database to use: Postgres, RethinkDB or CockroachDB?

1 Upvotes

I am in the process of developing a project similar to the eBay model and I need a fast database that allows me to make requests like SQL. I need some guidance on whether it would be better to use SQL or NoSQL databases.

When I think of NoSQL databases, only three names come to my head: RethinkDB, CouchDB and MongoDB. For this case it is clear that CouchDB is not an option and I admit that MongoDB and I do not agree.

I have thought of Postgres, which obviously already covers SQL and NoSQL needs. I was testing CockroachDB, a NoSQL that tries to behave like SQL using a query language similar to Postgres. I was finally considering RethinkDB.

When I tried RethinkDB I loved its query language, its control panel, being able to cloud the database by design and its simple way of maintaining the data (and it is by far my favorite NoSQL database).

On the other hand I have CockroachDB, although a little slower than RethinkDB, a very familiar query language for me and for any other individual that joins the team when the project is ongoing. Also with the feature of being able to create a cloud by design through Kubernetes. This thanks to being programmed in Golang (that's why it is slower than RethinkDB and Postgres).

Would you offer me some guidance on which database can best perform for these types of projects?


r/databases • • Oct 22 '19

Testing SQL engine correctness with sqllogictests, 6.7 million SQL queries and results

1 Upvotes

We just open-sourced our golang driver for sqllogictest, a set of 6.7M statements, queries and expected results to test the correctness of a SQL database engine. You can find the driver here:

https://github.com/liquidata-inc/sqllogictest

These were originally released by SQLite over 10 years ago, and the C source code to run them against anything but SQLite decayed over time. We implemented a native golang parser and test driver to run the test scripts on any database you choose. If you want to run them against your own database engine, just implement a simple harness in golang and point the test runner to some test files. You can use our test harness for dolt, linked in the README file, as an example for writing new harnesses.

For more detail about our journey of testing our SQL engine, check out this blog post:

https://www.liquidata.co/blog/2019-10-22-testing-dolts-sql-engine/


r/databases • • Sep 26 '19

Indexes Question

1 Upvotes

If an index has Key1 and Key2 in it, for a given table, is there ever any merit in having an additional index that has ONLY Key1 in it, or is it redundant since the index with both elements can be used?


r/databases • • Sep 11 '19

PROJECT ALTERNATOR: The Scylla Open Source DynamoDB-compatible API

1 Upvotes

Project Alternator is an open source project for an Amazon DynamoDB™-compatible API. The goal of this project is to deliver an open source alternative to Amazon’s DynamoDB, deployable wherever a user would want: on premises, on other public clouds like Microsoft Azure or Google Cloud Platform, or still on AWS (for users who wish to take advantage of other aspects of Amazon’s market-leading cloud ecosystem, such as the high-density i3en instances). DynamoDB users can keep their same client code unchanged. Alternator is written in C++ and is a part of Scylla.

[Read in full on ScyllaDB.com]


r/databases • • Sep 05 '19

Time-Based Anti-Patterns for Caching Time-Series Data

1 Upvotes

"In high throughput read-heavy systems having good cacheability is paramount to good performance. DRAM access (measured in nanoseconds), is far faster than even the fastest of the storage systems (measured in µseconds), and on top of that, caches have the luxury of storing finished post-processed results of computations, making returning them again even faster. For example, data to serve a query in Scylla from storage may be spread over multiple files. This data will have to be read, deserialized, and combined into a single entry so that it can be returned to the client. The Scylla cache will store the end result of that process, making the difference in efficiency between a storage-bound read and a cached read much wider than just the speed difference between the DRAM and storage technologies.

In this article we will explore one IoT/time-series classical scenario in which knowledge of how the cache operates can mean the difference between a fully cached workload that will be fast, and a fully storage-bound workload that will of course perform much worse."

Read in full on our blog. Includes Gists that don't translate to Reddit so well.


r/databases • • Aug 21 '19

Building a distributed time-series database on PostgreSQL

Thumbnail
blog.timescale.com
1 Upvotes

r/databases • • Aug 01 '19

Displaying data from an AWS DynamoDB table onto GraphQL via NodeJS

1 Upvotes

Can anyone give me a sorta ELI5 high-level step by step tutorial on how I should go about this? My goal is to simply have a query in GraphQL print out info from an already existing table in DynamoDB.

I've read so much documentation online but unfortunately my databases and NodeJS experience is little to none and I get overwhelmed reading them. For context graphql is my first query language and first time using NodeJS. I get thrown across going serverless or using Appsync and it's starting to stress me out simply because I have no idea what I'm looking at.

If this does not belong on this sub I will remove it.


r/databases • • Jul 20 '19

MySQL BufferPool & PageCleaner

1 Upvotes

I recently faced an issue in production and deep dived to learn about some cool stuff with MySQL.

> Buffer pools in MySQL
> page cleaners in MySQL
> config tweaking in MySQL

https://medium.com/@swayamraina/mysql-pagecleaner-4598a67db317


r/databases • • Jun 25 '19

Best Database for storing large, very wide matrix with sub-second read times?

1 Upvotes

I have a very large matrix that I want to store in a DB and access random rows/columns with sub-second latency.

The matrix I want to represent has 50,000 columns and up to 2 million rows. The values for each cell in the matrix are integers.

I want to be able to select any number of rows, and any subset of columns (including the entire set). I would like these results to return in less than 1 second (ideally closer to half a second).

I've tried the following options:

  1. DynamoDB

    1. Great in terms of latency, but can only hold 400kb per item, making storing 50,000 integers per key impossible

  2. Apache Hbase

    1. Selecting entire rows took over 10 seconds to return

  3. Apache Ignite

    1. Same problem as Apache Hbase


r/databases • • Jun 11 '19

DB Query converter

1 Upvotes

Hi All,

First of all I am not DB enginier but I want ask one question. As your know Adobe ColdFussion, Microsoft ODBC also Laravel software working as a intermediate layer from software to any DB. That software have own DB Query command and when we send Qury with that software command then that software can convert to any each other.

Bu in market I can not found any DB to any DB query converter. I mean; one software was write for Oracle and I want continue with PostgreSQL but I can not found Oracle to PostgreSQL converter. Any one know this type converter software ?

I talking about intermediate layer software, not a basic query script converter...


r/databases • • Jun 10 '19

Open Source PICK based multivalue database

1 Upvotes

Hi,

I'm developing the above as a hobby open source project. I wondered if others would be interested in utilizing a PICK based DB?

The bare DB is there, and basing it around a typical Univision PICK system.

With love,

JustLoveCode


r/databases • • May 24 '19

Showerthought: Backend design for a project mgmt system for freelancers

1 Upvotes

I'm working on a web-based project mgmt app (similar to asana, trello, etc.) with special focus on freelancers, clients and agencies. I'm thinking what tables and relations should I have to manage this data on the backend. So far, I've come up with following tables:

- users (id, type, email, password) - User details. type could be either freelancer/client/other/admin.
- projects (id, name, due_data, user_id) - Project details. user_id is the id of client who creates the project.
- project_resources (id, project_id, user_id) - Keep track of who all are involved in a project, could be a client, some freelancers and an agency.
- project_milestones (id, project_id, note, due_date, status) - Keep track of milestones in a project and their status.
- project_tasks (id, milestone_id, user_id, note, due_date, status) - Keep track of tasks linked to a milestone and the user responsible for its completion.
- timesheet (id, user_id, task_id, start_time, end_time) - keep track of how much each user worked on a particular task.

I feel this is very simplistic. Can you recommend me what else I can add to this?


r/databases • • May 03 '19

Database Recommendations

1 Upvotes

I’m looking for a database that will let me keep records for my Print Shop. I’m not looking for anything special, just a basic software that will let me record a job, add some notes, and maybe attach a file. Bonus points for being able to file jobs under each customer.

I just can’t seem to find one that fits what I need. Most of what I see is CRMs, set up to track inventory, or designed for a specific type of company.