Comments (1)
Thanks for asking about this. The production version of this application currently provides searchable indexing for around 18,000 individual texts (stored as Drupal nodes), and is able to provide results matching search queries in usually less than one second.
You are right to be cautious about trying to create a "big data" style application using Drupal. This is because Drupal, like most standard content management systems, uses a relational database structure to organize its content. Every field on a Drupal node, for example, is stored in a separate database table, so requesting a single node of data will require multiple SQL query joins.
I debated creating a custom entity in Drupal with a flatter database structure -- you can define a series of primary fields on an entity that would all be stored within a single table -- but so far, the traditional relational database has worked sufficiently.
That said, there is a fair amount of custom PHP code around doing the queries for the search results, specifically designed around handling big data. The main corpus search, for example, is not configure through a standard Drupal "View," due to that being less performant than a custom SQL query.
In addition the design relies on multiple levels of caching, as well as the fact that it returns its data as JSON content that is then presented through a separate front-end application (see https://github.com/writecrow/crow_frontend), both of which contribute to the perceived speed for the end user.
If you have additional questions about specific code, let me know!
from crow_backend.
Related Issues (20)
- Change export to excerpt/concordance
- Add weekly report of Crow user daily
- Convert existing drush commands to 9.x syntax
- Make custom code Drupal 9 compatible HOT 3
- Update contributed code to Drupal 9 compatible versions
- Add account option for offline access and update registration form
- Make institution required for user registration
- Update to Drupal 9.2.1
- Support import of texts with multiple students
- Option to display concordance numbers HOT 1
- Update to latest version of Drupal core
- Toggle excerpt & KWIC display HOT 1
- Select specific results to embed
- Generate a word list from a subset of corpus results
- Highlight search terms in individual text view
- Copy-to-clipboard frequency table
- "Crowcordance" lines HOT 1
- Add automated tests
- You have requested a non-existent parameter "monolog.level.debug" and a non-existent service "theme.manager" when installing HOT 1
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 crow_backend.