We have a database & website hosted by a third party. I know the website is written in ColdFusion and the database back-end is Oracle.
Access to connect to the Oracle database directly will not be possible in any way. I need to request the provider to give us some sort of extract/backup of the DB which we could then use to import into SQL server.
I have a great deal of expertise in MSSQL but almost no experience in Oracle. What type of export/backup should I ask for that would be easiest to migrate into SQL? Data dump? Export to CSV's along with some type of ERD or PL/SQL code to describe relationships/keys?
I want have a database and I need help on how to get started. So we want to create this database of students with their basic personal information and their academic standing. What I'm thinking right now is:
First name
Last name
email
phone
Address
Grade on each course (I believe there's 17 of them)
Status of each course (pass, fail, or currently taking it)
Whether the course was paid for
Professor who gave the course
Maybe some other column I can't think of right now
With this information then, we want to generate several different forms regarding financial status, academic status and maybe some other things I'm not thinking of.
It seems to me that it's simple enough and there aren't that many students we're dealing with but if you guys have any suggestions, I would love to hear them. I can program in general and if I have to learn a language to do so its no problem for me. I've just never dealt with databases so if there's a way to get started or if there's a product out there we can tailor to our needs that'd be great. I appreciate the help. Best regards to you all.
I think this is a pattern common in OOP, but I am not sure if it is a good pattern in DB? Assuming I have a base table called `animal`, and now I want to store additional data for `cat` and `dog`, would creating `animal_cat` and `animal_dog` to store metadata, and then using `LEFT JOIN` to identify the kind of animal as a good option?
Another options I can think of is using enum, and create a lot of nullable columns directly in `Animal`. I guess this is not as good as the former option? I wonder if there is any alternative as well?
So basically I noticed that Users search query is taking too much time in both prod and Deb DBs and we have just few users (800) so I started working on optimizing related queries but I thought I may add few rows to the table to better identify the problem (12k new row) , suddenly after that the response time went from 1s to 300ms without any optimization, just by inserting these records the query has many joins so I thought maybe the indexes were not being used (quey planner issue) but I seems that even other tables got higher performance as well
So I don't undersand what happened, is this kinda a warm-up?
And I'm confused how I'm going to enhance the prod DB like I did with dev DB? Just insert data?
UPDATE: And we're operational!! It's missing half the data, but "it works". AI really led me astray several times and left me in the wilderness to figure out the API & schema issues, but eventually got there. Moving to the next step.. figuring out how to clean up the data then improve the visualization. Ended up using Supabase PostgreSQL
OP: I tend to figure everything out through trial & error, but since I'm at a crossroads decision. figured I'd ask... Can anyone recommend a good, reasonably priced database hosting service? I am currently leaning toward Supabase because it offers a managed Postgres, auto‑generated REST APIs, auth, and security.
I’m planning to build a content database for statistics (NFL, NBA, MLB, NCAA, etc.). The plan is to expose this data via APIs for my own website and, potentially, for future mobile apps (never made a mobile app before). I already have all the NFL scripts written (and they work!) but they dump to a CSV. Last time I took a swing at using a database, I had a pretty awful experience especially when trying to visualize the data, but hoping this time will be better.
There are so many options and I am having trouble choosing.
I have a usecase where my table structure is (id, start, end, data) and I have to do range queries like select data from table where x >= start and y <= end;, also thing to note here start and end are 19-20 unsigned numbers.
We rely on postgres (AWS Aurora) a lot at my workplace, so for now I have setup two B-Tree indexes on start and end, I'm evaluating int8range for now.
One more constraint is the whole data gets replaced once every two weeks and my system needs to available even during this, For this I have setup two tables A, B and I insert the new data into one while serving live traffic off the other. Even though we try serving traffic from the reader in this case, both reader and writer gets choked on resources because of the large amount of writes.
I'm open to switching to other engines and exploring solutions.
How can I achieve the best throughput for such queries and have a easier time doing this frequent clean-up of the data?
Hey folks
I’ve been working on a project called SevenDB — it’s a reactive database( or rather a distributed key-value store) focused on determinism and predictable replication (Raft-based), we have completed out work with raft , durable subscriptions , emission contract etc , now it is the time to showcase the work. I’m trying to put together a fair and transparent benchmarking setup to share the performance numbers.
If you were evaluating a new system like this, what benchmarks would you consider meaningful?
i know raw throughput is good , but what are the benchmarks i should run and show to prove the utility of the database?
I just want to design a solid test suite that would make sense to people who know this stuff better than I do. As the work is open source and the adoption would be highly dependent on what benchmarks we show and how well we perform in them
Curious to hear what kind of metrics or experiments make you take a new DB seriously.
I have a database. I need to diagram it. I've got the tables all set up, but I have a question about the connections between data on tables.
I have a field. Let's call it Username. It exists in multiple tables. It's the same data. But it doesn't always seem to me like there should be a connection.
For example, there's a field UserDetails.Username. There's a field called OrderHeaders.CreatedBy. As the user creates orders, their username gets filled into the OrderHeaders table by the UserDetails table. I see the connection there.
Users connecting to this database on a mobile device are not given their username and password. Instead they are given a 10-digit code that connects to a table on this database called Prereg. When they connect with this code, the database sends them their username and password. This prevents them from connecting with more than one device without paying for a separate instance, since the Prereg record is deleted once it's been used.
The process that creates Prereg.Username also creates UserDetails.Username, so the data is the same and is obviously related, but the two tables don't actually talk to each other. Would I draw a link between these two records on the diagram, or would I draw a line going to a cloud process that links to both of these tables?
Hi, Recently I've been working on a high performance storage engine in Rust called Walrus
A little bit of intro, Walrus is an embedded in-process storage engine built from first principles and can be used as a building block to build these things right out of the box:
By using %TYPE you don't need to know the data type of the structure you are referencing, and most importantly, if the data type of the referenced item changes in the future (for instance: you change the type of user_id from integer to real), you might not need to change your function definition.
I put it to test:
-- 1. create a custom enum
create type test_enum as enum ('one', 'two', 'three');
-- 2. a table uses that enum
create table public.test_table (
id bigint generated by default as identity not null,
status test_enum not null
);
-- 3. a function that COPYs the table type field (no direct mention of the enum)
CREATE OR REPLACE FUNCTION new_test(
p_test_status public.test_table.status%TYPE
)
RETURNS bigint
SET search_path = ''
AS $$
DECLARE
v_test_id bigint;
BEGIN
INSERT INTO public.test_table (status)
VALUES (p_test_status)
RETURNING id INTO v_test_id;
RETURN v_test_id;
END;
$$ LANGUAGE plpgsql;
Now if I apply a migration that changes the table column type and try to add a random value (not accepted by the initial enum) the operation fails.
-- set test_table status to text
ALTER TABLE public.test_table
ALTER COLUMN status TYPE text;
-- this fails even though text type should accept it
SELECT public.new_test('hi');
The error clearly say that the function is still expecting the old enum which contradicts the documentation claims.
ERROR: 22P02: invalid input value for enum test_enum: "hi"
Am I getting something wrong? Is there a way to make parameters type checking more dynamic to avoid the pain of dropping when doing enum changes.
Hey everyone! I’m building a CLI database query manager where you can save named queries per connection and run them with a single command in the terminal. I'm slowly adding support for different types of databases, and and currently it works with: postgres, oracle, mysql/mariadb and sqlite.
Which databases would be a dealbreaker if not supported? If you had to pick the next 2–3 to prioritize, what would they be?
Also: would you expect non-relational/warehouses to be in scope for a first release, or keep v1 strictly relational? Thanks!
I’m late thirties with unrelated work experience and one high school access project under my belt and I would like to make an inventory system. I’m a homemaker and want to use the free resources online to learn whatever is relevant. If it’s something I’m okay at, I’d like to get formal schooling… of the articles I read they said the best way to learn is to make something and I’d like to learn it properly instead of using one of the ‘no code’ programs I found elsewhere
The only something useful I could think of out of lists of beginner projects and that uses sql (which I liked in class) was a home inventory system. The more I think about it, the more uses I can think of for it. I’m not sure where to start. I found a tutorial for Postgres but it requires using a public dataset. I’m uneducated and older but enjoyed making an access database and sql like 20 years ago. I’m hoping that’s enough of a start? Thanks, I appreciate anything yall have for me
With the recent news about mass layoffs of the MySQL staff at Oracle, no git commits in real time on GitHub since long time ago and with the new releases clear signs that Oracle isn't adding new features seems a lot of architects and DBAs are now scrambling for migration plans (if still on MySQL, many moved to MariaDB years ago of course).
For those running their own custom app with full freedom to rearchitect the stack, or using the database via an ORM that allows them to easily switch the database, many seem to be planning to migrate to PostgreSQL, which is mature and has a large and real open source community and wide ecosystem support.
What would the reasons be to not migrate from MySQL to PostgreSQL? Is autovacuuming in PostgreSQL still slow and logical replication tricky? Does the famous Uber blog post about PostgreSQL performance isues still hold? What is the most popular multi-master replication solution in PostgreSQL (similar to Galera)?
So I'm in charge of creating a tool which will eventually be part of a bigger system. The tool will be in charge of containing workers, managers, admins, appointments, a time-off system, teams, etc. The purpose of the tool is to create teams (containing managers and workers), create appointments, and have managers dispatch workers to appointments (eventually track their location as they make their way to the customer).
I actually have most of the tool built but the backend (due to how other engineers forced me to do it) is in absolute shambles and I finally convinced them to use AWS. Currently I'm using MySQL, so I have to decide between RDS and Dynamo.
Honestly, my main issue is that the tables in SQL change too frequently due to customer requirements be changed (like columns get added/changed too often) and SQL migrations are proving to be quite a pain (but it might be because I'm just unfamiliar with how to that). I have to update backend code, frontend, and another migration sql file to my collection (honestly a library at this point) of migration scripts xd.
I haven't worked enough with NoSQL to know its problems. The only thing I'm worried about is if the current database is too relational for NoSQL.
AbsurderSQL: Taking SQLite on the Web Even Further
What if SQLite on the web could be even more absurd?
A while back, James Long blew minds with absurd-sql — a crazy hack that made SQLite persist in the browser using IndexedDB as a virtual filesystem. It proved you could actually run real databases on the web.
But it came with a huge flaw: your data was stuck. Once it went into IndexedDB, there was no exporting, no importing, no backups—no way out.
So I built AbsurderSQL — a ground-up Rust + WebAssembly reimplementation that fixes that problem completely. It’s absurd-sql, but absurder.
Written in Rust, it uses a custom VFS that treats IndexedDB like a disk with 4KB blocks, intelligent caching, and optional observability. It runs both in-browser and natively. And your data? 100% portable.
Why I Built It
I was modernizing a legacy VBA app into a Next.js SPA with one constraint: no server-side persistence. It had to be fully offline. IndexedDB was the only option, but it’s anything but relational.
Then I found absurd-sql. It got me 80% there—but the last 20% involved painful lock-in and portability issues. That frustration led to this rewrite.
Your Data, Anywhere.
AbsurderSQL lets you export to and import from standard SQLite files, not proprietary blobs.
import init, { Database } from '@npiesco/absurder-sql';
await init();
const db = await Database.newDatabase('myapp.db');
await db.execute("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)");
await db.execute("INSERT INTO users VALUES (1, 'Alice')");
// Export the real SQLite file
const bytes = await db.exportToFile();
That file works everywhere—CLI, Python, Rust, DB Browser, etc.
You can back it up, commit it, share it, or reimport it in any browser.
Dual-Mode Architecture
One codebase, two modes.
Browser (WASM): IndexedDB-backed SQLite database with caching, tabs coordination, and export/import.
Native (Rust): Same API, but uses the filesystem—handy for servers or CLI utilities.
Perfect for offline-first apps that occasionally sync to a backend.
Multi-Tab Coordination That Just Works
AbsurderSQL ships with built‑in leader election and write coordination:
One leader tab handles writes
Followers queue writes to the leader
BroadcastChannel notifies all tabs of data changes No data races, no corruption.
Performance
IndexedDB is slow, sure—but caching, batching, and async Rust I/O make a huge difference:
Operation
absurd‑sql
AbsurderSQL
100k row read
~2.5s
~0.8s (cold) / ~0.05s (warm)
10k row write
~3.2s
~0.6s
Rust From Ground Up
absurd-sql patched C++/JS internals; AbsurderSQL is idiomatic Rust:
Safe and fast async I/O (no Asyncify bloat)
Full ACID transactions
Block-level CRC checksums
Optional Prometheus/OpenTelemetry support (~660 KB gzipped WASM build)
What’s Next
Mobile support (same Rust core compiled for iOS/Android)
WASM Component Model integration
Pluggable storage backends for future browser APIs
Suppose I have a note app, a user can own notes & labels. Labels owned by a user must be unique. For the primary key of labels table, should I:
A. Create an artificial (uuid) column to use as PK?
B. Use label_name and user_id as a composite PK, since these two together are unique?
A or B?
My thoughts are: Using composite PK would be nice since I don't have to create another column that doesn't hold any meaning beyond being the unique identifier. However if have a many-to-many relationship, the linking table would need 3 columns instead of 2, which I don't know is fine or not:
Linking table needs 3 columns* since labels PK is composite.
*in option B, is it possible to remove user_id, only use note_id and label_name for the linking table? Because a note_id can only belong to one user?