Comments (6)
I can confirm this is happening for my case as well (directus 10.9)
Retrieving items from a collection with several relationships can result in many queries. While each query is using the primary key index, this is still using up several hundred milliseconds just for retrieving data (fortunately directus correctly does JOINS for nested filters, the problem is only when selecting nested fields as far as I can tell)
from directus.
Seeing this in v10 too. the call uses thousands of parameters.
from directus.
Hi again,
I installed a fresh new Directus instance, in its latest version. The issue is still present, even with a completely different data model.
http://localhost:8055/items/annonces?fields=*,type.*
Directus is still performing two queries and doesnβt use the JOIN operator. π
from directus.
What database vendor are you using?
from directus.
What database vendor are you using?
PostgreSQL for my app, SQLite for the fresh instance in first comment
from directus.
Also seeing this with similar setup.
v10.13.1
Docker with local sqlite
Db is small, about 6MB, 12 collections, minimal relationships
Frequently seeing 500-1000ms latency, no network, all local
directus:
image: directus/directus:10.13.1
container_name: directus
ports:
- 8055:8055
volumes:
- ./database:/directus/database
- ./uploads:/directus/uploads
- ./templates:/directus/templates
- ./extensions:/directus/extensions
environment:
DB_CLIENT: "sqlite3"
DB_FILENAME: "/directus/database/data.db"
from directus.
Related Issues (20)
- DirectusPolicy types for typescript in SDK is incomplete HOT 2
- New CLI installation & Migration problem HOT 3
- Directus Extension (Integration) Testing Mocked Services HOT 1
- Incorrect Count Returned by Directus SDK Aggregation Method with Nested Filters
- "Create Item" pre-filled when used from Bookmark page HOT 1
- Do not return an empty body on user creation via API endpoint /users/register HOT 1
- Add note to the register user endpoint explaining the status code
- Include unsaved-changes notice in manual flow-confirmation
- Simpler way to get a user's policies needed HOT 3
- Input default value not being stored correctly HOT 2
- Notification drawer: item count missing
- Server crashed after trying to access deleted file HOT 5
- Default values has some weird behaviours with translations
- App: List within a Dashboard does not render M2M fields
- Icon in Email Template - Liquid HOT 1
- You don't have permission to access collection \"directus_translations\" or it does not exist. Queried in root. HOT 3
- Prevent entering non valid default data to JSON fields HOT 3
- PermissionService does not work anymore since Directus 11 HOT 3
- Prevent entering non valid default data to JSON fields / format default value as valid JSON
- OpenAPI spec has a duplicate operationId HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directus.