Skip to main content

New answers tagged

Best practices
0 votes
0 replies
0 views

I built a database. What should I do next?

The point of a thesis depends on who grades it. To some, the point is to prove that you can work scientifically. To others, it's to make a small contribution to science. I think the point is not to do ...
Christoph Rackwitz's user avatar
Best practices
0 votes
0 replies
0 views

Is using prisma findFirst() faster than findMany() then getting the first item in the returned array?

From the Prisma docs: findFirst calls findMany behind the scenes and accepts the same query options. Assuming based on your reply that you are passing in query options that will return exactly one ...
rmhunter's user avatar
  • 581
Best practices
1 vote
0 replies
0 views

I built a database. What should I do next?

It's impressive to have achieved what you did as an undergraduate. You should not evaluate your project by comparing it to mature RDBMS projects that in fact have thousands of engineer-years of work ...
Bill Karwin's user avatar
Best practices
0 votes
0 replies
0 views

I built a database. What should I do next?

Thank you, that really helped. Even if my project is small, rebuilding these ideas from scratch has taught me a lot, and I should not ignore that.
凉宫春日's user avatar
Best practices
3 votes
0 replies
0 views

I built a database. What should I do next?

You aren't a fool; you're reinventing the wheel. This is something we all do. Recreating something that was previously created allows you to explore the topic much deeper. Those analysis skills will ...
Greg Burghardt's user avatar
Best practices
1 vote
0 replies
0 views

I built a database. What should I do next?

This really did remind me: how could I possibly compare an undergraduate thesis project with the work of people who have spent more than a decade in the field? Anyone who does that is obviously a fool,...
凉宫春日's user avatar
Best practices
2 votes
0 replies
0 views

I built a database. What should I do next?

Real systems are made over years and decades, by entire teams and divisions of engineers, in response to concrete pain points that someone needs solved. Nobody builds a skyscraper by himself. Don't be ...
Christoph Rackwitz's user avatar
1 vote

How can I use specific values for query in Apache IoTDB

You can do it in one query (if your IoTDB version supports subqueries): SELECT time, s1, s2, s3, s4 FROM root.sg.d1 WHERE s1 = (SELECT MAX(s1) FROM root.sg.d1); This returns all rows where s1 is at ...
Adelino Silva's user avatar
Advice
0 votes
0 replies
0 views

What data distribution strategies does GBase 8a support besides hash?

In GBase 8a, data distribution determines how rows are physically distributed across nodes in the cluster. Besides hash distribution, the following strategies are supported: Replication Description: ...
Jacob's Ladder's user avatar
0 votes

Firebase Database in SQL

Firebase (Firestore/Realtime Database) is NoSQL — there's no built-in SQL mode. But you can query your Firestore data with real SQL using fire_duck_ext, a DuckDB community extension that connects ...
user3440094's user avatar
Best practices
2 votes
0 replies
0 views

Is using prisma findFirst() faster than findMany() then getting the first item in the returned array?

If you are wondering if this is faster in the specific case where findMany returns exactly one result, you may wish to edit your question to clarify this.
Ryan M's user avatar
  • 20.6k
Best practices
0 votes
0 replies
0 views

Is using prisma findFirst() faster than findMany() then getting the first item in the returned array?

The user thing was just an example, I'm talking about queries where I'd need to fetch a single record like a getById, for example. Currently I use findFirst() and the first item from findMany() ...
Miguel's user avatar
  • 1
Best practices
0 votes
0 replies
0 views

Is using prisma findFirst() faster than findMany() then getting the first item in the returned array?

I guess that pulling only one is faster too but I'm seeking some confirmation from people that have bigger knowledge than me.
Miguel's user avatar
  • 1
Best practices
0 votes
0 replies
0 views

Is using prisma findFirst() faster than findMany() then getting the first item in the returned array?

Why do you want the first user, in particular? Is it possible you're really thinking of a different query? If so, maybe you could edit your question to ask something closer to what you're really ...
Dan Getz's user avatar
  • 9,240
Best practices
0 votes
0 replies
0 views

Is using prisma findFirst() faster than findMany() then getting the first item in the returned array?

could you not just try out both ways and compare? it seems logical that asking for just one when that's all you need would be faster than pulling everything over and then selecting one from that.
500 - Internal Server Error's user avatar
Best practices
0 votes
0 replies
0 views

Data Analytics study on data traffic

Without some corresponding data to compare, you can only make an informed guess.
OldBoy's user avatar
  • 1,015
Advice
0 votes
0 replies
0 views

Data Engineering Path

Some portals show roadmaps with details - ie. Data Engineer Roadmap on roadmap.sh
furas's user avatar
  • 149k
Advice
1 vote
0 replies
0 views

Data Engineering Path

if Data Engineering means you want to learn also Machine Learning and AI then you should see page Kaggle. There are competitions for ML/AI with example data which you can reuse in learning pandas/...
furas's user avatar
  • 149k
Advice
0 votes
0 replies
0 views

Data Engineering Path

Thank you!! So I will continue my path :)
Rodrigo's user avatar
Advice
0 votes
0 replies
0 views

Data Engineering Path

You learn elements which are useful not only in Data Engineering but also in Web Designing and other situations - so it good direction.
furas's user avatar
  • 149k
0 votes

SQL query at least one of something

Haven't seen this answer yet: subquery with LIMIT 1. SELECT any_userdata FROM user WHERE (SELECT anything FROM whatever WHERE rating > 10 LIMIT 1) IS NOT NULL
WoodrowShigeru's user avatar
0 votes

Installing Oracle DataModeler assistance

You can set your jdk home editing product.conf like this: SetJavaHome /usr/lib/jvm/java-1.17.0-openjdk-amd64 Product.conf is in the following directories according to ide.conf: # Windows Platforms: # ...
Oscar Nahum Dorantes Olvera's user avatar
3 votes
Accepted

How do I delete an entity in a one-to-many relationship?

The problem is that you are only removing the item from the Cart's list, but the Item itself still points to the Cart in the database. In JPA, the "Many" side (the Item) controls the ...
Yaksh's user avatar
  • 307
Advice
0 votes
0 replies
0 views

i'm designing database for this homework

the handout is about 15 pages, and all of them is important, so i don't know how put it here, and my erd for mermaid draw is about 280 lines so i'm afraid that it's too long for every one, so how ...
user32488073's user avatar
Advice
0 votes
0 replies
0 views

i'm designing database for this homework

You'll probably want to actually post the details in the body of the request so people can see them. Also mention any particular areas you aren't happy with in your current design and why.
Richard Huxton's user avatar
0 votes

How do I rename a column in a database table using SQL?

For MySQL 8.0 and onwards ALTER TABLE table_name RENAME COLUMN old_col_name TO new_col_name; Credit goes to Lukas from this question.
Hashim Aziz's user avatar
  • 6,670
Best practices
0 votes
0 replies
0 views

the best choice of managing data for my pinterest-like project

I see, thank you for answer, definitely will check out book)
Vlad1k Tipir's user avatar
Best practices
0 votes
0 replies
0 views

the best choice of managing data for my pinterest-like project

ok, thank you for answer, it seems like PG is good for me
Vlad1k Tipir's user avatar
Best practices
0 votes
0 replies
0 views

the best choice of managing data for my pinterest-like project

thank you for answer, i'll try
Vlad1k Tipir's user avatar
Advice
0 votes
0 replies
0 views

CPU regression in MongoDB for find operations with $in and deep projections

Question was closed in SG: https://stackoverflow.com/staging-ground/79906216. There is no point to use advice post to circumvent the closure. Also you opened a post in dba, there is no need to post it ...
ray's user avatar
  • 15.6k
Best practices
0 votes
0 replies
0 views

the best choice of managing data for my pinterest-like project

I actually built a Pinterest-related PinCatch tool website and went with PostgreSQL for structured data (user sessions, download history, metadata) and it has been working great for high-read ...
Zari Khan's user avatar
Best practices
0 votes
0 replies
0 views

Designing a database for a login and brute force attack detection system"

Thanks for your suggestion, i tend to be hasty to start, and thanks to your suggestion, i know what must be done next, sorry for a bad question when i have such a little experience about this. Thanks ...
user32488073's user avatar
Best practices
2 votes
0 replies
0 views

Designing a database for a login and brute force attack detection system"

Before talking about entities for it, it would be good to understand if you have the ideas of such self-protection mechanisms. If not, it would be not a good idea to talk about nothing. The topic is ...
Sergey A Kryukov's user avatar
Best practices
2 votes
0 replies
0 views

SQL better prompts to get better data

Except that w3schools teaches all kinds of bad habits and incorrect terminology. Its like AI, take it with a pinch of salt.
Dale K's user avatar
  • 28.3k
Best practices
1 vote
0 replies
0 views

SQL better prompts to get better data

Its the AI generation - everything is a prompt :)
Dale K's user avatar
  • 28.3k
Best practices
0 votes
0 replies
0 views

SQL better prompts to get better data

This one is a good place to start.
Pércoles Tiago Napivoski's user avatar
Best practices
1 vote
0 replies
0 views

SQL better prompts to get better data

Have you tried a tutorial? I mean there are loads out there, no one is going to write an answer as good as a tried and tested tutorial. It is an entire language, takes more than one question to get ...
Dale K's user avatar
  • 28.3k
Best practices
3 votes
0 replies
0 views

SQL better prompts to get better data

These are not "prompts". They are keywords common to variants of the SQL language. You can learn more of them, as well as learn more about SQL in general, by starting with some ...
David's user avatar
  • 221k
Best practices
0 votes
0 replies
0 views

Markdown files in Blazor project

Short answer: No. Thinking about search and finding expression in database fields. It would be better stored in database.
mRizvandi's user avatar
  • 1,133
Best practices
0 votes
0 replies
0 views

How can I handle Large PostgreSQL Database?

And this knowledge must be translated into a test plan and test cases to make it available 24/7 while developing and testing.
Frank Heikens's user avatar
Best practices
1 vote
0 replies
0 views

How can I handle Large PostgreSQL Database?

First of all, 98 tables don't make the database large. When each table has an average of 1TB of data, that would make it large. But second, and actually more important, how are you going to test the ...
Frank Heikens's user avatar
Best practices
2 votes
0 replies
0 views

How can I handle Large PostgreSQL Database?

Right. Trusting the stuff an AI produces without verification by a knowledgeable human is a fairly certain recipe for disaster.
Laurenz Albe's user avatar
Best practices
2 votes
0 replies
0 views

How can I handle Large PostgreSQL Database?

Honestly, 98 tables is typical or even on the low side for a single-application database. I don't mean disrespect, but if this intimidates you, then perhaps you should take on a simpler project until ...
Bill Karwin's user avatar
Best practices
1 vote
0 replies
0 views

How can I handle Large PostgreSQL Database?

You say that you designed a PostgreSQL database, so why give it to AI? As you have discovered, AI is not the answer to everything. You should find a good book or other resource on database design and ...
OldBoy's user avatar
  • 1,015
Best practices
2 votes
0 replies
0 views

the best choice of managing data for my pinterest-like project

You can use either database. What matters is using the right modeling approach for the one you choose. With MongoDB, you model the domain with aggregates (users, boards, pins). If the number of pins ...
FranckPachot's user avatar
  • 1,067
Best practices
0 votes
0 replies
0 views

the best choice of managing data for my pinterest-like project

There's no wrong answer to your question of which one to use. You could be successful with either choice — PostgreSQL or MongoDB. Clearly those are successful database products for a variety of ...
Bill Karwin's user avatar
Advice
2 votes
0 replies
0 views

If I want to build a bus tracking system for an institute using C, what are the others things I should consider?

When you write I want to build a system where the employee will know the exact location what exactly do you mean with "exact location"? Do you mean the exact planned location of the bus (i....
Andreas Wenzel's user avatar
Advice
0 votes
0 replies
0 views

If I want to build a bus tracking system for an institute using C, what are the others things I should consider?

Without knowing anything about your experience level, or what you've used (except for C), there's no way to answer this question. Maybe have a conversation with Claude or Copilot to get a starting ...
John Bayko's user avatar
  • 1,157
Advice
2 votes
0 replies
0 views

If I want to build a bus tracking system for an institute using C, what are the others things I should consider?

I'm a big fan of c but it probably isn't the best choice for a project like this. c is usually used for high performance computation or low level system control. Your question is way too broad for ...
Simon Goater's user avatar
  • 2,067
Advice
3 votes
0 replies
0 views

If I want to build a bus tracking system for an institute using C, what are the others things I should consider?

" the employee don't know where the bus currently is." Do YOU know where the bus is? How do YOU know? Presumably there is some application or website where you can find this information. ...
ravenspoint's user avatar
  • 21.2k

Top 50 recent answers are included